mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Fix indexing bug for HexLattice in Python API
This commit is contained in:
parent
3b6a24b05a
commit
af3ff7b9e3
1 changed files with 2 additions and 2 deletions
|
|
@ -1238,8 +1238,8 @@ class HexLattice(Lattice):
|
|||
universe.create_xml_subelement(xml_element)
|
||||
|
||||
# Initialize the remaining universes.
|
||||
for r in range(self._num_rings-1):
|
||||
for theta in range(2*(self._num_rings - r)):
|
||||
for r in range(self._num_rings - 1):
|
||||
for theta in range(6*(self._num_rings - 1 - r)):
|
||||
universe = self._universes[r][theta]
|
||||
universe.create_xml_subelement(xml_element)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue