Bug fix: Forgot factor c_ms**-2

This commit is contained in:
Christian
2019-11-13 14:07:36 +01:00
parent f772977def
commit 7fca174042
2 changed files with 17 additions and 5 deletions
+13 -1
View File
@@ -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;
}