Commit 9c9ddc79 authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

moving meshes into create function

parent 54ca2ad6
#include "PDESolverCreator.hpp"
PDESolver *PDESolverCreator::Create() {
PDESolver *PDESolverCreator::Create(Meshes &meshes) {
if (_model == "LagrangeElliptic")
return new EllipticPDESolver(
new LagrangeEllipticAssemble(
......
......@@ -19,11 +19,9 @@ private:
int _degree = 1;
Meshes &meshes;
public:
PDESolverCreator(Meshes &meshes, int verbose = 1, int plotting = 1)
: meshes(meshes), _verbose(verbose), _plotting(plotting) {}
PDESolverCreator(int verbose = 1, int plotting = 1)
:_verbose(verbose), _plotting(plotting) {}
PDESolverCreator WithModel(const std::string &model) {
_model = model;
......@@ -50,7 +48,7 @@ public:
return *this;
}
PDESolver *Create();
PDESolver *Create(Meshes &meshes);
};
#endif //PDESOLVERCREATOR_HPP
Supports Markdown
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