Commit 568a0a93 authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

Introducing new problems

parent 17587098
......@@ -7,16 +7,19 @@
enum EStochasticProblem {
StochasticLaplace1D,
DefaultProblem,
StochasticLaplace2D,
StochasticLaplace1D,
StochasticPollution1D,
DeterministicPollution1D,
StochasticPollution2D,
DeterministicPollution2D,
StochasticPollutionCosHat2D,
StochasticPollutionMollifiedBar2D,
DeterministicLaplace1D,
DeterministicLaplace2D,
DeterministicPollution1D,
DeterministicPollution2D,
DeterministicPollutionCosHat2D,
DeterministicPollutionCosHatSquare500,
StochasticPollutionMollifiedBar2D
DeterministicPollutionCosHatSquare500
};
class StochasticProblemFactory {
......@@ -25,8 +28,10 @@ public:
static T *CreateFrom(EStochasticProblem eStochasticProblem) {
switch(eStochasticProblem) {
case StochasticLaplace1D:
case DeterministicLaplace1D:
return (T *) new class StochasticLaplace1D();
case StochasticLaplace2D:
case DeterministicLaplace2D:
return (T *) new class StochasticLaplace2D();
case StochasticPollution1D:
case DeterministicPollution1D:
......@@ -52,8 +57,11 @@ public:
private:
static map<string, EStochasticProblem> problemMap() {
return {
{"DefaultProblem", DefaultProblem},
{"StochasticLaplace1D", StochasticLaplace1D},
{"DeterministicLaplace1D", DeterministicLaplace1D},
{"StochasticLaplace2D", StochasticLaplace2D},
{"DeterministicLaplace2D", DeterministicLaplace2D},
{"StochasticPollution1D", StochasticPollution1D},
{"DeterministicPollution1D", DeterministicPollution1D},
{"StochasticPollution2D", StochasticPollution2D},
......
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