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

default values and name

parent 5df0d145
......@@ -26,9 +26,9 @@
class PDESolver {
protected:
int verbose;
int verbose = 1;
int plotting;
int plotting = 0;
Meshes &meshes;
......@@ -62,7 +62,7 @@ public:
virtual ~PDESolver() {};
virtual void PrintInfo() const {
mout.PrintInfo("PDESolver", verbose,
mout.PrintInfo(Name(), verbose,
PrintInfoEntry("Quantity", quantity),
PrintInfoEntry("Cost measure", costMeasure));
}
......@@ -86,6 +86,8 @@ public:
virtual IStochasticProblem *GetProblem() const = 0;
virtual void DrawSample(const SampleID &id) = 0;
virtual std::string Name() const = 0;
};
class DummyPDESolver : public PDESolver {
......@@ -118,6 +120,8 @@ public:
IStochasticProblem *GetProblem() const override { return assemble->GetProblem(); }
void DrawSample(const SampleID &id) override { assemble->DrawSample(id); }
std::string Name() const override { return "DummyPDESolver"; }
};
class EllipticPDESolver : public PDESolver {
......@@ -158,6 +162,8 @@ public:
IStochasticProblem *GetProblem() const override { return assemble->GetProblem(); }
void DrawSample(const SampleID &id) override { assemble->DrawSample(id); }
std::string Name() const override { return "EllipticPDESolver"; }
};
class TransportPDESolver : public PDESolver {
......@@ -205,6 +211,8 @@ public:
IStochasticProblem *GetProblem() const override { return assemble->GetProblem(); }
void DrawSample(const SampleID &id) override { assemble->DrawSample(id); }
std::string Name() const override { return "TransportPDESolver"; }
};
#endif //PDESOLVER_HPP
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