Added new reading routines (engine state,

4d double, 4d int); fixed error in RestartInfo
output; added the maximum length of the engine
state string into sim_constants.h
This commit is contained in:
2024-08-27 14:46:48 +02:00
parent c14a5245b1
commit c33629cb88
6 changed files with 165 additions and 13 deletions
@@ -157,15 +157,16 @@ std::shared_ptr<SimulationOutput> buildSimulationOutput(
{
int intervall =
json_int(json_object_by_path(object, {"RestartInfo", "Intervall"}), -1);
DEBUG_LEVEL_2("Try value of Intervall as string");
// 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 {
} else if (intervall == -1) {
intervall = 0;
}
ASSERT_NOTNEGATIVE(&intervall, "The intervall for RestartInfo has to be either 0"
",if no output is required or positive otherwise");
DEBUG_LEVEL_3("Restart Interval: " + std::to_string(intervall));
bool overwrite_last = json_bool(
json_object_by_path(object, {"RestartInfo", "OverwriteLast"}));