Skip to content

Commit

Permalink
rephrase volume integrated check
Browse files Browse the repository at this point in the history
  • Loading branch information
bsculac committed Dec 10, 2024
1 parent 22ec250 commit 6dcebcb
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions armi/physics/fuelCycle/fuelHandlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,15 +213,11 @@ def _compareAssem(candidate, current):
@staticmethod
def _getParamMax(a, paramName, blockLevelMax=True):
"""Get parameter with Block-level maximum."""
volIntegratedParamNames = [
p.name
for p in a.getBlocks()[0].p.paramDefs.atLocation(
ParamLocation.VOLUME_INTEGRATED
)
]
multiplier = (
a.getSymmetryFactor() if paramName in volIntegratedParamNames else 1.0
isVolumeIntegrated = (
a.getBlocks()[0].p.paramDefs[paramName].location
== ParamLocation.VOLUME_INTEGRATED
)
multiplier = a.getSymmetryFactor() if isVolumeIntegrated else 1.0
if blockLevelMax:
return a.getChildParamValues(paramName).max() * multiplier

Expand Down

0 comments on commit 6dcebcb

Please sign in to comment.