Skip to content

Commit 471f8fe

Browse files
shimwelljon-proximafusionJohn Tramm
committed
Scale the weight window cutoff with the window normalization
WeightWindow::scale multiplies the lower, upper, and survival weights by a factor but left weight_cutoff fixed, so after a renormalization the cutoff no longer sat at the same relative depth below the window. Scale weight_cutoff by the same factor so it keeps its relative position in any normalization frame. Split out of #3968 for focused review. Co-authored-by: jon-proxima <jon@proximafusion.com> Co-authored-by: John Tramm <jtramm@gmail.com>
1 parent d06fdee commit 471f8fe

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

include/openmc/weight_windows.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ struct WeightWindow {
6161
lower_weight *= factor;
6262
upper_weight *= factor;
6363
survival_weight *= factor;
64+
// The cutoff is scaled with the window bounds so that it sits at the same
65+
// relative depth below the window in any normalization frame
66+
weight_cutoff *= factor;
6467
}
6568
};
6669

0 commit comments

Comments
 (0)