Skip to content
Snippets Groups Projects
Commit 587f460a authored by Jonathan Froehlich's avatar Jonathan Froehlich
Browse files

Added base template

parent 77e215f4
No related branches found
No related tags found
1 merge request!235Resolve "MultiElasticity should hold multiple MainElasticities"
......@@ -19,4 +19,36 @@ public:
int Vtk() const { return vtk; }
};
/// Default Wrapper for all solvers to provide verbose and vtk values
template<typename AssembleType>
class CardiacSolverT {
protected:
int verbose{-1};
int vtk{-1};
public:
explicit CardiacSolverT(const std::string& vPrefix){
Config::Get(vPrefix+"Verbose", verbose);
Config::Get(vPrefix+"VTK", vtk);
}
explicit CardiacSolverT(int v) : verbose(v), vtk(v) {
}
void SetVerbose(int v) { verbose = v; }
int Verbose() const { return verbose; }
void SetVtk(int v) { vtk = v; }
int Vtk() const { return vtk; }
virtual void Initialize(AssembleType &assemble, Vector &u) = 0;
virtual bool Method(AssembleType &assemble, Vector &u) = 0;
virtual bool Step(AssembleType &assemble, Vector &u) = 0;
};
#endif //CARDIACSOLVER_HPP
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