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

[MaL] moved create function to separate file

parent 5d5a2774
No related branches found
No related tags found
No related merge requests found
...@@ -110,18 +110,6 @@ private: ...@@ -110,18 +110,6 @@ private:
createODESolver<NumEquations>(BaseLib::ConfigTree const& config); createODESolver<NumEquations>(BaseLib::ConfigTree const& config);
}; };
template <unsigned NumEquations>
std::unique_ptr<ODESolver<NumEquations>> createODESolver(
BaseLib::ConfigTree const& config)
{
#ifdef CVODE_FOUND
return std::unique_ptr<ODESolver<NumEquations>>(
new ConcreteODESolver<CVodeSolver, NumEquations>(config));
#else
return nullptr;
#endif // CVODE_FOUND
}
} // namespace MathLib } // namespace MathLib
#endif // MATHLIB_ODE_CONCRETEODESOLVER_H #endif // MATHLIB_ODE_CONCRETEODESOLVER_H
/**
* \copyright
* Copyright (c) 2012-2016, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#ifndef MATHLIB_ODE_ODESOLVERBUILDER_H
#define MATHLIB_ODE_ODESOLVERBUILDER_H
#include "ODESolver.h"
#include "ConcreteODESolver.h"
#ifdef CVODE_FOUND
#include "CVodeSolver.h"
#endif
namespace BaseLib
{
class ConfigTree;
}
namespace MathLib
{
template <unsigned NumEquations>
std::unique_ptr<ODESolver<NumEquations>> createODESolver(
BaseLib::ConfigTree const& config)
{
#ifdef CVODE_FOUND
return std::unique_ptr<ODESolver<NumEquations>>(
new ConcreteODESolver<CVodeSolver, NumEquations>(config));
#else
return nullptr;
#endif // CVODE_FOUND
}
} // namespace MathLib
#endif // MATHLIB_ODE_ODESOLVERBUILDER_H
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