Skip to content

Commit f228f27

Browse files
committed
normalize k by total_weight instead of n_particles
1 parent 37e2feb commit f228f27

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/eigenvalue.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,8 @@ void calculate_generation_keff()
7575
#endif
7676

7777
// Normalize single batch estimate of k
78-
// TODO: This should be normalized by total_weight, not by n_particles
7978
if (settings::solver_type != SolverType::RANDOM_RAY) {
80-
keff_reduced /= settings::n_particles;
79+
keff_reduced /= settings::total_weight;
8180
}
8281

8382
simulation::k_generation.push_back(keff_reduced);

0 commit comments

Comments
 (0)