From 6e4e69075bd1b74c975a46edc371de8ea836cfe0 Mon Sep 17 00:00:00 2001 From: guillaume Date: Thu, 31 Oct 2019 11:16:23 -0400 Subject: [PATCH] Revert to regular LNS for sublattices if neighbor rotation is not present in sub lattice --- openmc/lattice.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/openmc/lattice.py b/openmc/lattice.py index 441c81b65..4175e29f3 100644 --- a/openmc/lattice.py +++ b/openmc/lattice.py @@ -1018,6 +1018,12 @@ class RectLattice(Lattice): pattern[2][0], pattern[2][1], pattern[2][2]] elif strategy == "degenerate": sub_neighbors = [] + + # Revert to regular LNS if neighbor rotations are not + # present in the sub_universe (sub-lattice) + if not rotate_universe_with_neighbors: + sub_neighbors = [] + sub_universe.discretize(strategy, rotate_universe_with_neighbors, universes_to_ignore,