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
3c604b2a
Commit
3c604b2a
authored
Nov 09, 2020
by
niklas.baumgarten
Browse files
added new generators (ideas)
parent
83247b86
Changes
2
Hide whitespace changes
Inline
Side-by-side
mlmc/src/problem/StochasticProblem.cpp
View file @
3c604b2a
#include "StochasticProblem.hpp"
#include "StochasticProblem.hpp"
#include "
stochastic
s/CirculantEmbedding.hpp"
#include "
generator
s/CirculantEmbedding.hpp"
#include "
stochastic
s/HybridFluxGenerator.hpp"
#include "
generator
s/HybridFluxGenerator.hpp"
SampleGenerator
*
IStochasticProblem
::
createGenerator
(
GeneratorName
genName
,
SampleGenerator
*
IStochasticProblem
::
createGenerator
(
GeneratorName
genName
,
Meshes
&
meshes
)
{
Meshes
&
meshes
)
{
if
(
genName
==
"DummyGenerator"
)
if
(
genName
==
"DummyGenerator"
)
return
new
DummyGenerator
(
meshes
);
return
new
DummyGenerator
(
meshes
);
// if (genName == "UniformRandomNumberGenerator")
// return new UniformRandomNumberGenerator(meshes);
// if (genName == "NormalRandomNumberGenerator")
// return new NormalRandomNumberGenerator(meshes);
if
(
genName
==
"CirculantEmbedding"
)
if
(
genName
==
"CirculantEmbedding"
)
return
new
MultilevelCirculantEmbedding
(
meshes
);
return
new
MultilevelCirculantEmbedding
(
meshes
);
if
(
genName
==
"HybridFluxGenerator"
)
if
(
genName
==
"HybridFluxGenerator"
)
...
...
mlmc/src/problem/StochasticProblem.hpp
View file @
3c604b2a
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
#include "Algebra.hpp"
#include "Algebra.hpp"
#include "montecarlo/Sample.hpp"
#include "montecarlo/Sample.hpp"
#include "
stochastic
s/SampleGenerator.hpp"
#include "
generator
s/SampleGenerator.hpp"
#include "main/Utils.hpp"
#include "main/Utils.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