Commit becb870d authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

moving default values to PDESolver

parent dd7a7256
......@@ -13,9 +13,9 @@ protected:
int plotting = 0;
std::string problemName = "StochasticDummyProblem";
std::string problemName;
std::string modelName = "DummyPDESolver";
std::string modelName;
int degree = 1;
......
......@@ -7,8 +7,8 @@
class PDESolverCreator {
private:
std::string _pc;
std::string _model;
std::string _problem;
std::string _model = "StochasticDummyProblem";
std::string _problem = "DummyPDESolver";
std::string _quantity = "L2";
std::string _costMeasure = "size";
std::string _linearSolver;
......@@ -24,12 +24,14 @@ public:
:_verbose(verbose), _plotting(plotting) {}
PDESolverCreator WithModel(const std::string &model) {
_model = model;
if (!model.empty())
_model = model;
return *this;
}
PDESolverCreator WithProblem(const std::string &problem) {
_problem = problem;
if (!problem.empty())
_problem = problem;
return *this;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment