Skip to content
Snippets Groups Projects
Commit 910bcf66 authored by Christoph Lehmann's avatar Christoph Lehmann Committed by Dmitri Naumov
Browse files

[MaL] removed unneeded typedefs

parent 2d8f142e
No related branches found
No related tags found
No related merge requests found
...@@ -45,11 +45,8 @@ class ConcreteODESolver final : public ODESolver<NumEquations>, ...@@ -45,11 +45,8 @@ class ConcreteODESolver final : public ODESolver<NumEquations>,
private Implementation private Implementation
{ {
public: public:
using Interface = ODESolver<NumEquations>; void setFunction(MathLib::Function<NumEquations> f,
using Function = typename Interface::Function; MathLib::JacobianFunction<NumEquations> df) override
using JacobianFunction = typename Interface::JacobianFunction;
void setFunction(Function f, JacobianFunction df) override
{ {
Implementation::setFunction( Implementation::setFunction(
std::unique_ptr<detail::FunctionHandlesImpl<NumEquations>>{ std::unique_ptr<detail::FunctionHandlesImpl<NumEquations>>{
......
...@@ -27,10 +27,8 @@ template <unsigned NumEquations> ...@@ -27,10 +27,8 @@ template <unsigned NumEquations>
class ODESolver class ODESolver
{ {
public: public:
using Function = MathLib::Function<NumEquations>; virtual void setFunction(MathLib::Function<NumEquations> f,
using JacobianFunction = MathLib::JacobianFunction<NumEquations>; MathLib::JacobianFunction<NumEquations> df) = 0;
virtual void setFunction(Function f, JacobianFunction df) = 0;
virtual void setTolerance(const std::array<double, NumEquations>& abstol, virtual void setTolerance(const std::array<double, NumEquations>& abstol,
const double reltol) = 0; const double reltol) = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment