From 910bcf663e65a7766a4d8a38660db440d9a75471 Mon Sep 17 00:00:00 2001 From: Christoph Lehmann <christoph.lehmann@ufz.de> Date: Sat, 23 Apr 2016 14:27:52 +0200 Subject: [PATCH] [MaL] removed unneeded typedefs --- MathLib/ODE/ConcreteODESolver.h | 7 ++----- MathLib/ODE/ODESolver.h | 6 ++---- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/MathLib/ODE/ConcreteODESolver.h b/MathLib/ODE/ConcreteODESolver.h index e404ec166d3..0d90fe34d67 100644 --- a/MathLib/ODE/ConcreteODESolver.h +++ b/MathLib/ODE/ConcreteODESolver.h @@ -45,11 +45,8 @@ class ConcreteODESolver final : public ODESolver<NumEquations>, private Implementation { public: - using Interface = ODESolver<NumEquations>; - using Function = typename Interface::Function; - using JacobianFunction = typename Interface::JacobianFunction; - - void setFunction(Function f, JacobianFunction df) override + void setFunction(MathLib::Function<NumEquations> f, + MathLib::JacobianFunction<NumEquations> df) override { Implementation::setFunction( std::unique_ptr<detail::FunctionHandlesImpl<NumEquations>>{ diff --git a/MathLib/ODE/ODESolver.h b/MathLib/ODE/ODESolver.h index fdc2b26908f..3e60dfa38e9 100644 --- a/MathLib/ODE/ODESolver.h +++ b/MathLib/ODE/ODESolver.h @@ -27,10 +27,8 @@ template <unsigned NumEquations> class ODESolver { public: - using Function = MathLib::Function<NumEquations>; - using JacobianFunction = MathLib::JacobianFunction<NumEquations>; - - virtual void setFunction(Function f, JacobianFunction df) = 0; + virtual void setFunction(MathLib::Function<NumEquations> f, + MathLib::JacobianFunction<NumEquations> df) = 0; virtual void setTolerance(const std::array<double, NumEquations>& abstol, const double reltol) = 0; -- GitLab