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

adapted new logger functions

parent 684e62a3
......@@ -4,12 +4,12 @@
using namespace std;
void MonteCarloElliptic::Method() {
logger->startMethodMSG();
logger->StartMethodMsg();
if (!onlyFineLevel)
logger->logMSGV1("l: " + to_string(l)
logger->LogMsgv1("l: " + to_string(l)
+ " dM: " + to_string(dM));
else
logger->logMSGV1("l: " + to_string(l)
logger->LogMsgv1("l: " + to_string(l)
+ " dM: " + to_string(dM)
+ " onlyFineLevel: True");
......@@ -60,9 +60,9 @@ void MonteCarloElliptic::Method() {
updateAvg();
updateStatistic();
logger->logMSGV1("|E[Y]|: " + to_string(avgY)
logger->LogMsgv1("|E[Y]|: " + to_string(avgY)
+ " V[Y]: " + to_string(varY));
logger->endMethodMSG();
logger->EndMethodMsg();
}
void MonteCarloElliptic::solveElliptic(int l, double &valueQ, double &cost,
......@@ -80,7 +80,7 @@ void MonteCarloElliptic::solveElliptic(int l, double &valueQ, double &cost,
valueQ = assemble->getInflowOutflow(solution).second;
if (functional == "Goal") valueQ = assemble->getGoal(solution);
logger->logMSGV2("Solving on level " + to_string(l) + " took " +
logger->LogMsgv2("Solving on level " + to_string(l) + " took " +
to_string((startSolving - Date()).t) + "s");
}
......@@ -88,12 +88,12 @@ void MonteCarloElliptic::plotResults(int l, int m, const string &suffix,
const Vector &u, const Vector &flux,
const Vector &perm) {
const char *name = buildString(m, "u", suffix);
string name = buildName(m, "u", suffix);
assemble->plotU(plot, u, name);
name = buildString(m, "flux", suffix);
name = buildName(m, "flux", suffix);
assemble->plotFlux(plot, flux, name);
name = buildString(m, "perm", suffix);
name = buildName(m, "perm", suffix);
assemble->plotPerm(plot, perm, name);
}
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