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

adoption to meshes move

parent 9c9ddc79
......@@ -9,9 +9,10 @@ void HybridFaceNormalFluxGenerator::createPDESolver() {
if (meshes.dim() == 2)
problemName = "StochasticLaplace2D";
pdeSolver = PDESolverCreator(meshes).
pdeSolver = PDESolverCreator().
WithModel("HybridElliptic").
WithProblem(problemName).Create();
WithProblem(problemName).
Create(meshes);
}
void HybridFaceNormalFluxGenerator::createMGraphs() {
......
......@@ -21,34 +21,30 @@ protected:
int dM = 1e5;
Meshes *meshes;
MeshesCreator meshesCreator;
PDESolver *pdeSolver;
PDESolverCreator pdeSolverCreator;
MonteCarlo mc;
TestMonteCarlo(const std::string &meshName, int commSplit = 0) :
meshes(MeshesCreator("Interval").
meshesCreator(MeshesCreator("Interval").
WithCommSplit(commSplit).
WithDistribute("RCB", 0).
WithoutOverlap(0).
WithPLevel(pLevel).
WithLevel(level).
Create()),
pdeSolver(PDESolverCreator(*meshes, 0, 0).
WithLevel(level)),
pdeSolverCreator(PDESolverCreator(0, 0).
WithProblem(GetParam()).
WithQuantity("GeneratorValue").
WithModel("DummyPDESolver").
Create()),
mc(MonteCarlo(Level(level), dM, true, meshes, pdeSolver)) {
WithModel("DummyPDESolver")),
mc(MonteCarlo(Level(level), dM, true, meshesCreator, pdeSolverCreator)) {
mc.Method();
}
void TearDown() {
PPM->Barrier(0);
PPM->ClearCommunicators(false);
if (!meshes) delete meshes;
if (!pdeSolver) delete pdeSolver;
}
};
......
......@@ -37,11 +37,11 @@ protected:
WithLevel(id.level.fine).
Create();
pdeSolver = PDESolverCreator(*meshes).
pdeSolver = PDESolverCreator().
WithModel(GetParam().model).
WithProblem(GetParam().problem).
WithQuantity(GetParam().quantity).
Create();
Create(*meshes);
mGraphs = pdeSolver->CreateSolutionMatrixGraphs(*meshes);
}
......
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