Commit 7adc11c0 authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

added space for estimator creator

parent b7d9407c
......@@ -2,11 +2,10 @@
#define ESTIMATOR_HPP
#include "WelfordAggregate.hpp"
#include "Errors.hpp"
#include "MeshesCreator.hpp"
struct Exponents;
class Estimator {
protected:
......@@ -40,10 +39,10 @@ public:
virtual std::string Name() const { return "Estimator"; };
virtual void EstimatorResults() const {
void EstimatorResults() const {
mout.PrintInfo("Estimator Results", verbose,
PrintInfoEntry("Value", value),
PrintInfoEntry("Cost", cost),
PrintInfoEntry("Value", value),
PrintInfoEntry("Epsilon", epsilon),
PrintInfoEntry("Total Error", errors.total),
PrintInfoEntry("Numerical Error", errors.numeric),
......@@ -60,4 +59,74 @@ Estimator *CreateEstimator(const std::string &estimatorName);
std::unique_ptr<Estimator> CreateEstimatorUniquePtr(const std::string &estimatorName);
//class EstimatorCreator {
//private:
// int _level = 0;
//
// bool _onlyFine = false;
//
// bool _parallel = true;
//
// std::string _estimatorName = "MonteCarlo";
//
// MeshesCreator *meshesCreator;
//
// PDESolverCreator *pdeSolverCreator;
//
//public:
// EstimatorCreator(const std::string &estimatorName) : _estimatorName(estimatorName) {}
//
// EstimatorCreator WithInitLevel(int level) {
// _level = level;
// return *this;
// }
//
// MeshesCreator WithNeumannAt(std::vector<int> faceIndex) {
// return *this;
// }
//
// MeshesCreator WithProcIds(std::vector<int> procIds) {
// return *this;
// }
//
// MeshesCreator WithLevel(int level) {
// _level = level;
// return *this;
// }
//
// MeshesCreator WithPLevel(int pLevel) {
// _pLevel = pLevel;
// return *this;
// }
//
// MeshesCreator WithDistribute(const std::string &distName) {
// _distName = distName;
// return *this;
// }
//
// MeshesCreator WithoutDistribute() {
// _distName = "NoDistribution";
// return *this;
// }
//
// MeshesCreator WithOverlap(const std::string &olapName) {
// _olapName = olapName;
// return *this;
// }
//
// MeshesCreator WithoutOverlap() {
// _olapName = "NoOverlap";
// return *this;
// }
//
// MeshesCreator WithCommSplit(int commSplit) {
// _commSplit = commSplit;
// return *this;
// }
//
// Meshes *Create();
//
// std::unique_ptr<Meshes> CreateUnique();
//};
#endif //ESTIMATOR_HPP
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