Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix duplication of shuffles in restart cases #941

Merged
merged 15 commits into from
Oct 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion armi/physics/fuelCycle/fuelHandlerInterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,15 @@ def interactBOC(self, cycle=None):
)
mc2.interactBOC(cycle=cycle)

if self.enabled():
if self.enabled() and (
self.cs["loadStyle"] != "fromDB"
or self.cs["startNode"] == 0
or (self.cs["startCycle"] != cycle)
):
# in restart cases, only do this if restarting at BOC to avoid duplicating shuffles
# the logic to accomplish this is a bit long because we don't pass the
# timeNode into interactBOC hooks. Otherwise it would be much easier
# to determine when to call this or not
self.manageFuel(cycle)

def interactEOC(self, cycle=None):
Expand Down
1 change: 1 addition & 0 deletions doc/release/0.2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ What's new in ARMI
Bug fixes
---------
#. Fixed bug in ``fastFlux`` block parameter mapping in the ``UniformMeshConverter`` by applying it to the ``detailedAxialExpansion`` category.
#. Fixed issue where shuffles might duplicate in restart runs.


ARMI v0.2.4
Expand Down