Skip to content

Commit

Permalink
Update rpkt.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshingles committed Aug 31, 2024
1 parent bceb873 commit d04eca3
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions rpkt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -963,26 +963,20 @@ auto calculate_chi_bf_gammacontr(const int modelgridindex, const double nu, Phix
}

chi_bf_sum += nnlevel * sigma_contr;
if constexpr (USECELLHISTANDUPDATEPHIXSLIST) {
phixslist->chi_bf_sum[i] = chi_bf_sum;
}
} else if constexpr (USECELLHISTANDUPDATEPHIXSLIST) {
} else if constexpr (USECELLHISTANDUPDATEPHIXSLIST && DETAILED_BF_ESTIMATORS_ON) {
// ignore this particular process
phixslist->chi_bf_sum[i] = chi_bf_sum;
if constexpr (DETAILED_BF_ESTIMATORS_ON) {
if (bfestimindex >= 0) {
phixslist->gamma_contr[bfestimindex] = 0.;
}
}
}
} else if constexpr (USECELLHISTANDUPDATEPHIXSLIST) {
// no element present or not an important level
phixslist->chi_bf_sum[i] = chi_bf_sum;
if constexpr (DETAILED_BF_ESTIMATORS_ON) {
if (bfestimindex >= 0) {
phixslist->gamma_contr[bfestimindex] = 0.;
}
}
} else if constexpr (USECELLHISTANDUPDATEPHIXSLIST && DETAILED_BF_ESTIMATORS_ON) {
// no element present or not an important level
if (bfestimindex >= 0) {
phixslist->gamma_contr[bfestimindex] = 0.;
}
}
if constexpr (USECELLHISTANDUPDATEPHIXSLIST) {
phixslist->chi_bf_sum[i] = chi_bf_sum;
}
}

Expand Down

0 comments on commit d04eca3

Please sign in to comment.