mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Minor hex lattice improvements for #331
This commit is contained in:
parent
87a5bf1e62
commit
2b9fdc6c09
1 changed files with 0 additions and 9 deletions
|
|
@ -1275,8 +1275,6 @@ class HexLattice(Lattice):
|
|||
outer ring.
|
||||
"""
|
||||
|
||||
assert len(universes) == self._num_rings
|
||||
|
||||
# Find the largest universe ID and count the number of digits so we can
|
||||
# properly pad the output string later.
|
||||
largest_id = max([max([univ._id for univ in ring])
|
||||
|
|
@ -1330,9 +1328,6 @@ class HexLattice(Lattice):
|
|||
y -= 1
|
||||
theta += 1
|
||||
|
||||
# Make sure we reached the bottom.
|
||||
assert y == middle - 2*r
|
||||
|
||||
# Climb up the bottom-left.
|
||||
for i in range(r):
|
||||
# Add the universe.
|
||||
|
|
@ -1363,10 +1358,6 @@ class HexLattice(Lattice):
|
|||
y += 1
|
||||
theta += 1
|
||||
|
||||
# Make sure we reached the top and used all the universes.
|
||||
assert y == middle + 2*r
|
||||
assert theta == len(universes[r_prime])
|
||||
|
||||
# Flip the rows and join each row into a single string.
|
||||
rows = [pad.join(x) for x in rows[::-1]]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue