10#include <sys/utsname.h>
18#include "function/vector.hh"
21#define ModelControl_formulaOut_D 0
27 class ModelControlBase;
72 virtual std::ostream&
info(std::ostream&
os)
const;
78 std::unique_ptr<Vector<F> >
sol_;
118 const bool store =
false,
119 const std::string
path =
"");
125 virtual std::ostream&
info(std::ostream&
os)
const;
139 const std::string
path,
140 const bool flag =
false);
150 const std::string
ending);
154 const std::string
frmstr,
const std::string name);
162 const std::string
frmstr,
const std::string name)
164 DEBUGL(ModelControl_formulaOut_D,
165 "Writing formula " <<
frmstr <<
" into " << name <<
".m");
167 parameters_.addString((std::string(
"grafik_") +
frmstr).
c_str(),
168 (name +
".m").
c_str());
void addString(const char *name, const char *value)
Adds a string to the hash of strings.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
void formulaOut_(const concepts::PiecewiseFormulaBase< G > &frm, const std::string frmstr, const std::string name)
graphical output of formulas
void newfile_(std::string &name, const std::string varname, const std::string ending)
ModelControlBase(F &model)
Constructor.
virtual void dataOut(concepts::InOutParameters ¶meters, const bool store=false, const std::string path="")
virtual std::string filename_(const std::string varname, const std::string path, const bool flag=false)
concepts::InOutParameters parameters_
Parameters of the calculation.
const concepts::InOutParameters & parameters() const
Return parameters of the calculation.
virtual F & model()
Returns the model.
void loadSolution(const std::string vectorFile)
Loads solution vector from vectorFile.
void basisFunctions(const std::string path="")
void writeSolution(const std::string vectorFile, bool verbose=true)
ModelControl(F &model)
Constructor.
Model(const std::string problemName)
Constructor.
virtual const std::string mshAbbr_()=0
Mesh abbreviation string.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
std::unique_ptr< Vector< F > > sol_
Solution vector.
virtual void solve_()=0
Method for solving.
virtual Space< Real > & space() const =0
Returns the space.
const Vector< F > * solution()
Returns solution vector.
const std::string problemName_
Name of the problem.
virtual Mesh & mesh_()=0
Mesh.
#define DEBUGL(doit, msg)
Set< F > makeSet(uint n, const F &first,...)