Commit 1d6eba70 authored by niklas.baumgarten's avatar niklas.baumgarten

rmv dependency to meshfile

parent 26d18ef0
......@@ -3,6 +3,8 @@
#include "montecarlo/MultilevelMonteCarlo.hpp"
#include "pdesolver/PDESolverCreator.hpp"
#include "MeshesCreator.hpp"
class MainProgram {
private:
......@@ -14,9 +16,13 @@ private:
Meshes *createMeshes() {
if (problemName.find("1D") != string::npos)
return new Meshes("Line", pLevel, maxLevel);
return MeshesCreator("Interval").
WithLevel(maxLevel).
WithPLevel(pLevel).Create();
if (problemName.find("2D") != string::npos)
return new Meshes("UnitSquare", pLevel, maxLevel);
return MeshesCreator("Square").
WithLevel(maxLevel).
WithPLevel(pLevel).Create();
if (problemName == "StochasticInitialConditions2D") // Todo Refactor
return new Meshes("ComparisonSquare.geo", pLevel, maxLevel);
Exit("\nMesh not found in " + problemName + "\n")
......@@ -89,7 +95,6 @@ public:
return 0;
}
};
#endif //MAIN_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