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:
@@ -14,6 +14,7 @@
|
||||
#define SIM_EXPLICIT_RK_H_
|
||||
|
||||
#include "TimeIntUtils.h"
|
||||
#include "TimeStep.h"
|
||||
|
||||
namespace TimeIntegration {
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user