Skip to content

Commit

Permalink
don't overwrite mesh from database
Browse files Browse the repository at this point in the history
  • Loading branch information
onufer committed Jul 20, 2022
1 parent 7fe3ed1 commit 9a64521
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions armi/reactor/reactors.py
Expand Up @@ -2262,10 +2262,16 @@ def processLoading(self, cs):
"Please make sure that this is intended and not a input error."
)

self.p.referenceBlockAxialMesh = self.findAllAxialMeshPoints(applySubMesh=False)
self.p.axialMesh = self.findAllAxialMeshPoints()
refAssem = self.refAssem
# if we have these params loaded from the database do not overwrite,
# otherwise initialize them
if not self.p.referenceBlockAxialMesh:
self.p.referenceBlockAxialMesh = self.findAllAxialMeshPoints(
applySubMesh=False
)
if not self.p.axialMesh:
self.p.axialMesh = self.findAllAxialMeshPoints()

refAssem = self.refAssem
# blueprints.assemblies.values need to be populated
# In a load from DB case construction may not have been prepped yet.
# this normally happens during blueprints constructAssem, but for DB
Expand Down

0 comments on commit 9a64521

Please sign in to comment.