Skip to content

Commit

Permalink
Merge 84f1b0f into 9cb79cf
Browse files Browse the repository at this point in the history
  • Loading branch information
jakehader committed Sep 7, 2022
2 parents 9cb79cf + 84f1b0f commit fb0a778
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions armi/reactor/converters/uniformMesh.py
Expand Up @@ -396,13 +396,15 @@ def setAssemblyStateFromOverlaps(
# Determine which blocks in the uniform mesh source assembly are
# within the lower and upper bounds of the destination block.
sourceBlocksInfo = sourceAssembly.getBlocksBetweenElevations(zLower, zUpper)

if not sourceBlocksInfo:

if abs(zUpper - zLower) < 1e-6 and not sourceBlocksInfo:
continue
elif not sourceBlocksInfo:
raise ValueError(
f"An error occurred when attempting to map to the "
f"results from {sourceAssembly} to {destinationAssembly}. "
f"No blocks in {sourceAssembly} exist between the axial "
f"elevations of {zLower:<8.3e} cm and {zUpper:<8.3e} cm. "
f"elevations of {zLower:<12.5f} cm and {zUpper:<12.5f} cm. "
f"This a major bug in the uniform mesh converter that should "
f"be reported to the developers."
)
Expand All @@ -411,9 +413,7 @@ def setAssemblyStateFromOverlaps(
# source assembly within the lower and upper bounds of the destination
# block and perform the parameter mapping.
updatedDestVals = collections.defaultdict(float)

_setNumberDensitiesFromOverlaps(destBlock, sourceBlocksInfo)

for setter, getter, paramNames in [
(
BlockParamMapper.scalarParamSetter,
Expand Down

0 comments on commit fb0a778

Please sign in to comment.