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

adapted Estimator Creator

parent 49940759
...@@ -7,7 +7,10 @@ ...@@ -7,7 +7,10 @@
Estimator *EstimatorCreator::Create() { Estimator *EstimatorCreator::Create() {
if (_estimatorName == "StochasticCollocation") if (_estimatorName == "StochasticCollocation")
return new StochasticCollocation(); return new StochasticCollocation(
_epsilon, _level, _stochLevel, _onlyFine, _parallel,
_meshesCreator, _pdeSolverCreator
);
if (_estimatorName == "MultilevelMonteCarlo") if (_estimatorName == "MultilevelMonteCarlo")
return new MultilevelEstimator( return new MultilevelEstimator(
......
...@@ -71,6 +71,8 @@ private: ...@@ -71,6 +71,8 @@ private:
int _initSamples; int _initSamples;
int _stochLevel;
double _epsilon; double _epsilon;
Levels _levelVec; Levels _levelVec;
...@@ -120,6 +122,11 @@ public: ...@@ -120,6 +122,11 @@ public:
return *this; return *this;
} }
EstimatorCreator WithStochLevel(int stochLevel) {
_stochLevel = stochLevel;
return *this;
}
EstimatorCreator WithOnlyFine(bool onlyFine) { EstimatorCreator WithOnlyFine(bool onlyFine) {
_onlyFine = onlyFine; _onlyFine = onlyFine;
return *this; 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