Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Mpp
MLMC
Commits
1d6eba70
Commit
1d6eba70
authored
Dec 17, 2020
by
niklas.baumgarten
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rmv dependency to meshfile
parent
26d18ef0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
mlmc/src/Main.hpp
mlmc/src/Main.hpp
+8
-3
No files found.
mlmc/src/Main.hpp
View file @
1d6eba70
...
...
@@ -3,6 +3,8 @@
#include "montecarlo/MultilevelMonteCarlo.hpp"
#include "pdesolver/PDESolverCreator.hpp"
#include "MeshesCreator.hpp"
class
MainProgram
{
private:
...
...
@@ -14,9 +16,13 @@ private:
Meshes
*
createMeshes
()
{
if
(
problemName
.
find
(
"1D"
)
!=
string
::
npos
)
return
new
Meshes
(
"Line"
,
pLevel
,
maxLevel
);
return
MeshesCreator
(
"Interval"
).
WithLevel
(
maxLevel
).
WithPLevel
(
pLevel
).
Create
();
if
(
problemName
.
find
(
"2D"
)
!=
string
::
npos
)
return
new
Meshes
(
"UnitSquare"
,
pLevel
,
maxLevel
);
return
MeshesCreator
(
"Square"
).
WithLevel
(
maxLevel
).
WithPLevel
(
pLevel
).
Create
();
if
(
problemName
==
"StochasticInitialConditions2D"
)
// Todo Refactor
return
new
Meshes
(
"ComparisonSquare.geo"
,
pLevel
,
maxLevel
);
Exit
(
"
\n
Mesh not found in "
+
problemName
+
"
\n
"
)
...
...
@@ -89,7 +95,6 @@ public:
return
0
;
}
};
#endif //MAIN_HPP
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment