Bug fix: Forgot factor c_ms**-2
This commit is contained in:
@@ -22,6 +22,16 @@ struct Termination_Stats {
|
||||
int n_energy = 0;
|
||||
int n_reaction = 0;
|
||||
|
||||
void reset () {
|
||||
n_total = 0;
|
||||
n_rw = 0;
|
||||
n_dipole = 0;
|
||||
n_radial = 0;
|
||||
n_max = 0;
|
||||
n_energy = 0;
|
||||
n_reaction = 0;
|
||||
}
|
||||
|
||||
void to_array(int *array) { // Ugly workarounds maybe move to casting with reinterpret cast
|
||||
array [0] = n_total;
|
||||
array [1] = n_rw;
|
||||
@@ -65,7 +75,9 @@ public:
|
||||
Termination_Stats get_stats() {
|
||||
return stats;
|
||||
}
|
||||
|
||||
void reset_stats() {
|
||||
stats.reset();
|
||||
}
|
||||
void increase_n_reaction() {
|
||||
stats.n_reaction += 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user