diff --git a/openmc/model/surface_composite.py b/openmc/model/surface_composite.py index 6271154fb8c..51019b0d8e4 100644 --- a/openmc/model/surface_composite.py +++ b/openmc/model/surface_composite.py @@ -451,10 +451,10 @@ def __init__(self, xmin, xmax, ymin, ymax, zmin, zmax, **kwargs): self.zmax = openmc.ZPlane(z0=zmax, **kwargs) def __neg__(self): - return +self.xmin & -self.xmax & +self.ymin & -self.ymax & +self.zmin & -self.zmax + return -self.xmax & +self.xmin & -self.ymax & +self.ymin & -self.zmax & +self.zmin def __pos__(self): - return -self.xmin | +self.xmax | -self.ymin | +self.ymax | -self.zmin | +self.zmax + return +self.xmax | -self.xmin | +self.ymax | -self.ymin | +self.zmax | -self.zmin class XConeOneSided(CompositeSurface): diff --git a/tests/regression_tests/torus/inputs_true.dat b/tests/regression_tests/torus/inputs_true.dat index 0045d7e466b..0ccbda4008e 100644 --- a/tests/regression_tests/torus/inputs_true.dat +++ b/tests/regression_tests/torus/inputs_true.dat @@ -3,7 +3,7 @@ - +