Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Mpp
MLUQ
Commits
d3f9370c
Commit
d3f9370c
authored
Jan 17, 2020
by
niklas.baumgarten
Browse files
added coshat problems
parent
03b14415
Changes
1
Hide whitespace changes
Inline
Side-by-side
mlmc/src/MLMCMain.C
View file @
d3f9370c
#include "MLMCMain.h"
using
namespace
std
;
void
MLMCMain
::
initialize
()
{
...
...
@@ -59,9 +58,12 @@ MatrixGraphs *MLMCMain::getSampleMatrixGraphs() {
}
StochasticField
*
MLMCMain
::
getStochasticField
()
{
if
(
problemName
==
"StochasticLaplace1D"
||
problemName
==
"StochasticLaplace2D"
)
if
(
problemName
==
"StochasticLaplace1D"
||
problemName
==
"StochasticLaplace2D"
)
return
new
StochasticField
(
*
meshes
,
"CirculantEmbedding"
);
if
(
problemName
==
"StochasticPollution1D"
||
problemName
==
"StochasticPollution2D"
||
problemName
==
"Pollution2D"
)
if
(
problemName
==
"StochasticPollution1D"
||
problemName
==
"StochasticPollution2D"
||
problemName
==
"StochasticPollution2DCosHat"
||
problemName
==
"DeterministicPollution2D"
||
problemName
==
"DeterministicPollution2DCosHat"
)
return
new
StochasticField
(
*
meshes
,
"HybridFluxGenerator"
);
}
...
...
@@ -74,8 +76,12 @@ StochasticProblem *MLMCMain::getStochasticProblem() {
return
new
StochasticPollution1D
();
if
(
problemName
==
"StochasticPollution2D"
)
return
new
StochasticPollution2D
();
if
(
problemName
==
"Pollution2D"
)
return
new
Pollution2D
();
if
(
problemName
==
"StochasticPollution2DCosHat"
)
return
new
StochasticPollution2DCosHat
();
if
(
problemName
==
"DeterministicPollution2D"
)
return
new
DeterministicPollution2D
();
if
(
problemName
==
"DeterministicPollution2DCosHat"
)
return
new
DeterministicPollution2DCosHat
();
Exit
(
"
\n
Stochastic problem not implemented yet
\n
"
)
}
...
...
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