Added option to reset relevant fields for

output after a poisson solution step
This commit is contained in:
2024-04-13 11:10:18 +02:00
parent 30b0178e5f
commit 93a51acbda
12 changed files with 71 additions and 9 deletions
+4 -2
View File
@@ -56,10 +56,11 @@ class PoissonSolver {
double target_accuracy,
int num_cycles,
int solver_intervall,
int solver_offset);
int solver_offset,
bool reset_after_solving);
void solvePotential(const blitz::Array<double, 3> charge_density,
int cpu_sync);
int cpu_sync, bool& reset);
blitz::Array<double, 3> potential();
std::shared_ptr<VectorField> staticElectricField();
const CylinderBinning* densityBinning();
@@ -75,6 +76,7 @@ class PoissonSolver {
const int num_cycles_;
const int solver_intervall_;
const int solver_offset_;
const bool reset_after_solving_;
// density binning defined on the cell centers, potential defined
// such that it exists on the cell edges so that the azimuthal