From 0105d1bddd3a47a62d69212f5833033793c95083 Mon Sep 17 00:00:00 2001 From: jpollin98 Date: Thu, 2 May 2024 00:02:44 +0100 Subject: [PATCH] Update update_grid.cc --- update_grid.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update_grid.cc b/update_grid.cc index adb90a378..32a97f328 100644 --- a/update_grid.cc +++ b/update_grid.cc @@ -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); }