Skip to content

Commit

Permalink
Moving some axial expansion debug statements to single (#1063)
Browse files Browse the repository at this point in the history
  • Loading branch information
john-science authored Jan 5, 2023
1 parent 9d6a405 commit b3c3d35
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions armi/reactor/converters/axialExpansionChanger.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,6 @@ def axiallyExpandAssembly(self):
f"for each block in assembly {self.linked.a}."
)
for ib, b in enumerate(self.linked.a):

runLog.debug(msg=f" Block {b}")
blockHeight = b.getHeight()
# set bottom of block equal to top of block below it
Expand Down Expand Up @@ -385,12 +384,20 @@ def _getSolidComponents(b):


def _checkBlockHeight(b):
"""
Do some basic block height validation
Notes
-----
3cm is a presumptive lower threshhold for DIF3D
"""
if b.getHeight() < 3.0:
runLog.debug(
"Block {0:s} ({1:s}) has a height less than 3.0 cm. ({2:.12e})".format(
b.name, str(b.p.flags), b.getHeight()
)
)

if b.getHeight() < 0.0:
raise ArithmeticError(
"Block {0:s} ({1:s}) has a negative height! ({2:.12e})".format(
Expand Down Expand Up @@ -471,7 +478,8 @@ def _getLinkedBlocks(self, b):
str(self.a.getName()),
str(self.a.getLocation()),
str(b.p.flags),
)
),
single=True,
)
if upperLinkedBlock is None:
runLog.debug(
Expand All @@ -480,7 +488,8 @@ def _getLinkedBlocks(self, b):
str(self.a.getName()),
str(self.a.getLocation()),
str(b.p.flags),
)
),
single=True,
)

def _getLinkedComponents(self, b, c):
Expand Down Expand Up @@ -526,7 +535,8 @@ def _getLinkedComponents(self, b, c):
str(self.a.getLocation()),
str(b.p.flags),
str(c.p.flags),
)
),
single=True,
)
if lstLinkedC[1] is None:
runLog.debug(
Expand All @@ -536,7 +546,8 @@ def _getLinkedComponents(self, b, c):
str(self.a.getLocation()),
str(b.p.flags),
str(c.p.flags),
)
),
single=True,
)


Expand Down

0 comments on commit b3c3d35

Please sign in to comment.