Fix indexing bug for HexLattice in Python API

This commit is contained in:
Sterling Harper 2015-07-13 20:43:24 -06:00
parent 3b6a24b05a
commit af3ff7b9e3

View file

@ -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)