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
7adc11c0
Commit
7adc11c0
authored
May 14, 2021
by
niklas.baumgarten
Browse files
added space for estimator creator
parent
b7d9407c
Changes
1
Hide whitespace changes
Inline
Side-by-side
mlmc/src/estimators/Estimator.hpp
View file @
7adc11c0
...
...
@@ -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
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