Fixed errors s.t. code runs (on 1 proc)

This commit is contained in:
2024-01-25 11:34:46 +01:00
parent 9d0c7646b3
commit ffc65f8ef9
3 changed files with 15 additions and 12 deletions
@@ -129,21 +129,21 @@ std::shared_ptr<SimulationOutput> buildSimulationOutput(
}
}
// Potential
// PoissonSolver
{
int intervall =
json_int(json_object_by_path(object, {"Potential", "Intervall"}));
json_int(json_object_by_path(object, {"PoissonSolver", "Intervall"}));
if (intervall == 0 &&
json_string(json_object_by_path(
object, {"Potential", "Intervall"})) == "EachSync") {
object, {"PoissonSolver", "Intervall"})) == "EachSync") {
intervall = 1;
}
ASSERT_POSITIVE(&intervall,
"The intervall for the potential must be positive");
bool overwrite_last = json_bool(
json_object_by_path(object, {"Potential", "OverwriteLast"}));
json_object_by_path(object, {"PoissonSolver", "OverwriteLast"}));
OutputTask task = {"potential", overwrite_last, intervall};