From b80e9acc4ca41362107d4d990804b4525ceb2537 Mon Sep 17 00:00:00 2001 From: bsculac Date: Wed, 11 Dec 2024 13:20:20 -0800 Subject: [PATCH] fix _getParamMax symmetry to account for assembly params --- armi/physics/fuelCycle/fuelHandlers.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/armi/physics/fuelCycle/fuelHandlers.py b/armi/physics/fuelCycle/fuelHandlers.py index 51e5eb81b..655eaa08f 100644 --- a/armi/physics/fuelCycle/fuelHandlers.py +++ b/armi/physics/fuelCycle/fuelHandlers.py @@ -216,15 +216,20 @@ def _getParamMax(a, paramName, blockLevelMax=True): multiplier = a.getSymmetryFactor() if multiplier != 1: # handle special case: volume-integrated parameters where symmetry factor is not 1 + if blockLevelMax: + paramCollection = a.getBlocks()[0].p + else: + paramCollection = a.p isVolumeIntegrated = ( - a.getBlocks()[0].p.paramDefs[paramName].location + paramCollection.paramDefs[paramName].location == ParamLocation.VOLUME_INTEGRATED ) multiplier = a.getSymmetryFactor() if isVolumeIntegrated else 1.0 + if blockLevelMax: return a.getChildParamValues(paramName).max() * multiplier - - return a.p[paramName] * multiplier + else: + return a.p[paramName] * multiplier def findAssembly( self,