From 4e939d382024660c8213b8d3ae9a5576daaa5339 Mon Sep 17 00:00:00 2001 From: Sam Shaner Date: Mon, 28 Dec 2015 10:59:27 -0800 Subject: [PATCH] changed RectLattice universes ordering from [x][y][z] to [z][y][x] --- openmc/universe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openmc/universe.py b/openmc/universe.py index 98367c381b..14a3007afb 100644 --- a/openmc/universe.py +++ b/openmc/universe.py @@ -1119,7 +1119,7 @@ class RectLattice(Lattice): for z in range(self._dimension[2]): for y in range(self._dimension[1]): for x in range(self._dimension[0]): - universe = self._universes[x][y][z] + universe = self._universes[z][y][x] # Append Universe ID to the Lattice XML subelement universe_ids += '{0} '.format(universe._id) @@ -1137,7 +1137,7 @@ class RectLattice(Lattice): else: for y in range(self._dimension[1]): for x in range(self._dimension[0]): - universe = self._universes[x][y] + universe = self._universes[y][x] # Append Universe ID to Lattice XML subelement universe_ids += '{0} '.format(universe._id)