Possible problem tallying photon heating with weight windows enabledΒ #3207
Closed
Description
Bug Description
I was staring at the section on photon heating today and noticed that we may be subtracting too much energy from photon heating tallies when weight windows are applied.
openmc/src/tallies/tally_scoring.cpp
Lines 958 to 981 in 2d988a6
Based on how the n_bank_second
attribute is incremented in the Particle::create_secondary
method and that this method is applied when splitting particles in weight window application, it seems particles split in application of weight windows will be incorporated into the correction, which I don't believe is correct.
Lines 116 to 118 in 2d988a6
I'll update this issue when I have more information.