Commit 92e3a224 authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

bug fix convergence test

parent 4d4e2688
......@@ -50,17 +50,19 @@ public:
config.get("StochasticField", fieldName);
config.get("Experiment", experimentName);
if (initSampleAmount.size() != initLevels.size()) Exit(
if (initSampleAmount.size() != initLevels.size()
&& experimentName != "ConvergenceTest") Exit(
"\ninitLevels and initSampleAmount have to be of the same size.\n")
if (maxLevel < initLevels.back()) Exit(
"\nLast element of initLevels has to be smaller or equal to maxLevel.\n")
int uniformSampleAmount;
config.get("uniformSampleAmount", uniformSampleAmount);
if (experimentName == "ConvergenceTest")
fill(initSampleAmount.begin(),
initSampleAmount.end(),
uniformSampleAmount);
if (experimentName == "ConvergenceTest") {
initSampleAmount = {};
for (auto &level: initLevels)
initSampleAmount.push_back(uniformSampleAmount);
}
initialize();
}
......
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