Commit 110af1a2 authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

adapted Estimator Creator

parent 49940759
......@@ -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(
......
......@@ -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;
......
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