Commit e6596357 authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

..

parent b2420029
......@@ -3,6 +3,7 @@
#include "m++.h"
class MultilevelMonteCarloLogger {
private:
Date timestamp;
......@@ -14,7 +15,7 @@ public:
string inner_indent = default_indent;
MultilevelMonteCarloLogger() {
ReadConfig(Settings, "MLMCVerbose", verbose);
config.get("MLMCVerbose", verbose);
}
void increase_indent() {
......@@ -53,13 +54,11 @@ public:
}
};
class MonteCarloLogger : public MultilevelMonteCarloLogger {
private:
Date timestamp;
int verbose = 0;
public:
MonteCarloLogger() : MultilevelMonteCarloLogger() {
ReadConfig(Settings, "MCVerbose", verbose);
......@@ -84,8 +83,6 @@ public:
void logMSGV2(string msg) override {
vout(2) << inner_indent << msg << endl;
}
};
#endif //MLMC__MULTILEVELMONTECARLO__HPP
Markdown is supported
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