added basic parallel output for the
string representation of the rng engine state
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user