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
110af1a2
Commit
110af1a2
authored
Jul 10, 2021
by
niklas.baumgarten
Browse files
adapted Estimator Creator
parent
49940759
Changes
2
Hide whitespace changes
Inline
Side-by-side
mluq/src/estimators/Estimator.cpp
View file @
110af1a2
...
...
@@ -7,7 +7,10 @@
Estimator
*
EstimatorCreator
::
Create
()
{
if
(
_estimatorName
==
"StochasticCollocation"
)
return
new
StochasticCollocation
();
return
new
StochasticCollocation
(
_epsilon
,
_level
,
_stochLevel
,
_onlyFine
,
_parallel
,
_meshesCreator
,
_pdeSolverCreator
);
if
(
_estimatorName
==
"MultilevelMonteCarlo"
)
return
new
MultilevelEstimator
(
...
...
mluq/src/estimators/Estimator.hpp
View file @
110af1a2
...
...
@@ -71,6 +71,8 @@ private:
int
_initSamples
;
int
_stochLevel
;
double
_epsilon
;
Levels
_levelVec
;
...
...
@@ -120,6 +122,11 @@ public:
return
*
this
;
}
EstimatorCreator
WithStochLevel
(
int
stochLevel
)
{
_stochLevel
=
stochLevel
;
return
*
this
;
}
EstimatorCreator
WithOnlyFine
(
bool
onlyFine
)
{
_onlyFine
=
onlyFine
;
return
*
this
;
...
...
Write
Preview
Supports
Markdown
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