added basic parallel output for the

string representation of the rng engine state
This commit is contained in:
2024-08-23 16:39:03 +02:00
parent 2e5923ab6f
commit f6aae32288
6 changed files with 263 additions and 5 deletions
@@ -153,6 +153,28 @@ std::shared_ptr<SimulationOutput> buildSimulationOutput(
output->setPotentialOutput(task);
}
// RestartInfo
{
int intervall =
json_int(json_object_by_path(object, {"RestartInfo", "Intervall"}), -1);
DEBUG_LEVEL_2("Try value of Intervall as string");
if (intervall == -1 && json_string(json_object_by_path(
object, {"RestartInfo", "Intervall"})) == "EachSync") {
intervall = 1;
} else {
intervall = 0;
}
ASSERT_NOTNEGATIVE(&intervall, "The intervall for RestartInfo has to be either 0"
",if no output is required or positive otherwise");
bool overwrite_last = json_bool(
json_object_by_path(object, {"RestartInfo", "OverwriteLast"}));
OutputTask task = {"RestartInfo", overwrite_last, intervall};
output->setRestartInfoOutput(task);
}
return output;
}