Skip to content

Commit

Permalink
Update update_grid.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
jpollin98 committed May 1, 2024
1 parent 67086f0 commit 0105d1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions update_grid.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1253,12 +1253,12 @@ void update_grid(FILE *estimators_file, const int nts, const int nts_prev, const
// generate a loop over all mgi
if constexpr (DETAILED_BF_ESTIMATORS_ON) {
for (int mgi = 0; mgi < grid::get_npts_model(); mgi++) {
const int assoc_cells = grid::get_numassociatedcells(mgi);
int assoc_cells = grid::get_numassociatedcells(mgi);
if (assoc_cells > 0) {
double estimator_normfactor =
1 /
(grid::get_modelcell_assocvolume_tmin(mgi) * pow(globals::timesteps[nts_prev].mid / globals::tmin, 3)) /
globals::timesteps[nts_prev].width / globals::nprocs;
(globals::timesteps[nts_prev].width) / globals::nprocs; // deltaV is the volume of the cell

radfield::normalise_bf_estimators(mgi, estimator_normfactor / H);
}
Expand Down

0 comments on commit 0105d1b

Please sign in to comment.