Skip to content
Snippets Groups Projects
Commit c2195139 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Added default problem type to Euler and Merson solver for better access to static method.

parent a04934b4
No related branches found
No related tags found
1 merge request!34Runge kutta
......@@ -13,6 +13,7 @@
#include <math.h>
#include <TNL/Config/ConfigDescription.h>
#include <TNL/Solvers/ODE/ExplicitSolver.h>
#include <TNL/Solvers/DummyProblem.h>
#include <TNL/Config/ParameterContainer.h>
#include <TNL/Timer.h>
......@@ -20,7 +21,7 @@ namespace TNL {
namespace Solvers {
namespace ODE {
template< typename Problem >
template< typename Problem = DummyProblem<> >
class Euler : public ExplicitSolver< Problem >
{
public:
......
......@@ -11,6 +11,7 @@
#pragma once
#include <math.h>
#include <TNL/Solvers/DummyProblem.h>
#include <TNL/Config/ConfigDescription.h>
#include <TNL/Solvers/ODE/ExplicitSolver.h>
......@@ -18,7 +19,7 @@ namespace TNL {
namespace Solvers {
namespace ODE {
template< class Problem >
template< class Problem = DummyProblem<> >
class Merson : public ExplicitSolver< Problem >
{
public:
......
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