Added option to turn off Poisson solver,

regardless of offset & interval
This commit is contained in:
2024-06-27 11:07:25 +02:00
parent 1e1c84a211
commit f130274ea5
5 changed files with 18 additions and 8 deletions
+5 -1
View File
@@ -51,10 +51,14 @@ namespace generator {
int num_cycles = parameter.intValue(json_path_append({"PoissonSolver"},
{"NumCycles"}));
bool do_solver = parameter.boolValue(json_path_append({"PoissonSolver"},
{"DoSolver"}), true);
return std::shared_ptr<PoissonSolver>(new PoissonSolver(boundaries.at("Bottom"),
boundaries.at("Top"), boundaries.at("Hull"), geometry, position_binning,
electrodes, target_accuracy, num_cycles, solver_intervall, solver_offset));
electrodes, target_accuracy, num_cycles, solver_intervall, solver_offset,
do_solver));
}
std::map<std::string, GlobalBoundary> buildBoundaries(Parameter& parameter,