unify VMS/Chorin apps

git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@2675 e10b68d5-8a6e-419e-a041-bce267b0401d
This commit is contained in:
akva
2014-01-16 08:54:00 +00:00
committed by Knut Morten Okstad
parent 70f685e583
commit c069a6bdea
2 changed files with 18 additions and 0 deletions

View File

@@ -14,6 +14,7 @@
#define SIM_EXPLICIT_RK_H_
#include "TimeIntUtils.h"
#include "TimeStep.h"
namespace TimeIntegration {

View File

@@ -20,6 +20,23 @@
#include "IFEM.h"
//! \brief Structure for configuring a given simulator
//! \details Your SIM need to specialize this for its type
template<class T>
struct SolverConfigurator {
int setup(T& sim, typename T::SetupProps& props, char* infile);
};
//! \brief Configuration template
template<class T>
int ConfigureSIM(T& t, typename T::SetupProps& p, char* infile)
{
SolverConfigurator<T> setup;
return setup.setup(t, p, infile);
}
/*!
\brief Template class for simulator drivers.
\details This template can be instanciated over any type implementing the