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

add printing of parameters

parent 2c9b623e
......@@ -118,6 +118,8 @@ MatrixGraphs *MLMCMain::getMatrixGraphs(string _modelName_,
}
void MLMCMain::run() {
printParameters();
if (experimentName == "ConvergenceTest") {
headConvergenceTest();
mlmc->method();
......@@ -148,4 +150,20 @@ void MLMCMain::run() {
system("python3 ../tools/plot_mlmc.py MLMCOverEpsilon");
}
}
}
\ No newline at end of file
}
void MLMCMain::printParameters() {
mout << "Problem = \t" << problemName << endl;
mout << "Model = \t" << modelName << endl;
mout << "Experiment = \t" << experimentName << endl;
mout << "StochField = \t" << fieldName << endl;
mout << "l_init = \t" << vec2str(l_init) << endl;
mout << "M_init = \t" << vec2str(M_init) << endl;
if (experimentName == "MLMCExperiment")
mout << "eps = \t" << epsilon << endl;
if (experimentName == "MLMCOverEpsilon")
mout << "eps_lst = \t" << vec2str(epsilon_lst) << endl;
mout << "Lmax = \t" << Lmax << endl;
mout << "plevel = \t" << plevel << endl;
mout << "enablePy = \t" << enablePython << endl;
}
......@@ -70,6 +70,8 @@ public:
void run();
void printParameters();
static void headConvergenceTest() {
mout << endl << "**********************************************************"
<< endl << "*** Convergence tests, kurtosis, telescoping sum check ***"
......
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