Commit 3c0cb689 authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

new constructors to use monte carlo from main

parent af4fced6
......@@ -42,14 +42,29 @@ public:
MonteCarlo(int level, int dM, bool onlyFine, bool parallel,
MeshesCreator meshesCreator, PDESolverCreator pdeCreator) :
level(level), onlyFine(onlyFine), parallel(parallel),
pdeSolverCreator(pdeCreator),
meshesCreator(meshesCreator) {
pdeSolverCreator(pdeCreator), meshesCreator(meshesCreator) {
Init(dM);
}
MonteCarlo() :
pdeSolverCreator(PDESolverCreator()),
meshesCreator(MeshesCreator(pdeSolverCreator.GetMeshName())) {
int dM = 0;
config.get("Level", level);
config.get("Samples", dM);
config.get("OnlyFine", onlyFine);
config.get("MCParallel", parallel);
Init(dM);
}
MonteCarlo(MeshesCreator meshesCreator, PDESolverCreator pdeCreator) :
pdeSolverCreator(pdeCreator), meshesCreator(meshesCreator) {
int dM = 0;
config.get("Level", level);
config.get("Samples", dM);
config.get("OnlyFine", onlyFine);
config.get("MCParallel", parallel);
Init(dM);
}
std::string Name() const override {
......
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