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
+2
View File
@@ -31,6 +31,8 @@ class CurrentCollector {
double physicalTime() const;
void resetCurrentCollector();
friend class CpuSynchronizer;
private:
+2
View File
@@ -38,6 +38,8 @@ class DynamicDensityField : public DensityField {
double density(const Coordinate& position);
double density(const Coordinate& position, double energy_eV);
void resetDynamicDensityField();
blitz::Array<double, 3> densityArray();
blitz::Array<double, 4> spectrumArray();
blitz::Array<double, 4> timeInBinArray() const;
+2
View File
@@ -23,6 +23,8 @@ class DeletionLogger {
void numDeletions(long int new_value, DeletionType type);
long int numDeletions(DeletionType type) const;
void resetDeletionLogger();
friend class CpuSynchronizer;
private:
+1
View File
@@ -10,6 +10,7 @@ class Timer {
double time() const;
void increaseTimestep(double time_s);
void setTime(double time_s);
void resetTime();
private:
double current_time_s_;