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

implemented CreateStochasticEllipticProblem

parent b5466641
#include "problem/StochasticEllipticProblem.hpp"
IStochasticEllipticProblem *
CreateStochasticEllipticProblem(std::string problemName, Meshes &meshes) {
if (problemName == "StochasticLaplace1D")
return new StochasticLaplace1D(meshes);
if (problemName == "StochasticLaplace2D")
return new StochasticLaplace2D(meshes);
}
\ No newline at end of file
......@@ -68,4 +68,7 @@ public:
string Name() const override { return "StochasticLaplace2D"; }
};
IStochasticEllipticProblem *
CreateStochasticEllipticProblem(std::string problemName, Meshes &meshes);
#endif //STOCHASTICELLIPTICPROBLEM_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