Revert to regular LNS for sublattices if neighbor rotation is not present in sub lattice

This commit is contained in:
guillaume 2019-10-31 11:16:23 -04:00
parent 4754d7fd40
commit 6e4e69075b

View file

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