Added option to reset relevant fields for
output after a poisson solution step
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -31,6 +31,8 @@ class CurrentCollector {
|
||||
|
||||
double physicalTime() const;
|
||||
|
||||
void resetCurrentCollector();
|
||||
|
||||
friend class CpuSynchronizer;
|
||||
|
||||
private:
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user