Commit 5a141c9b authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

new constructor

parent 29e65001
......@@ -13,9 +13,9 @@ protected:
int plotting = 0;
std::string problemName = "DummyStochasticProblem1D";
std::string problemName;
std::string modelName = "DummyPDESolver";
std::string modelName;
int degree = 1;
......@@ -71,6 +71,20 @@ public:
coarseId.coarse = true;
}
MonteCarlo(Level level, int dM, bool onlyFine, Meshes *meshes, PDESolver* pdeSolver) :
level(level), ctr(SampleCounter(dM)), onlyFine(onlyFine),
meshes(meshes), pdeSolver(pdeSolver) {
readConfigEntries();
solMGraphs = pdeSolver->CreateSolutionMatrixGraphs(*meshes);
fineId.level = level;
fineId.coarse = false;
coarseId.level = level;
coarseId.coarse = true;
}
~MonteCarlo() {
if (!solMGraphs) delete solMGraphs;
if (!pdeSolver) delete pdeSolver;
......
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