Fixed errors s.t. code runs (on 1 proc)
This commit is contained in:
@@ -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};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user