used placeholders namespace and added comment about variables initialized

This commit is contained in:
myerspat 2022-06-29 09:37:18 -05:00
parent 2c5a845897
commit c38ed4d875
2 changed files with 6 additions and 3 deletions

View file

@ -347,7 +347,8 @@ void sample_photon_reaction(Particle& p)
double prob_after = prob + micro.photoelectric;
if (prob_after > cutoff) {
// Get grid index, interpolation factor, and bounding subshell
// cross sections
int i_grid = micro.index_grid;
double f = micro.interp_factor;
const auto& xs_lower = xt::row(element.cross_sections_, i_grid);