From 3944c2f1e84838c7004a8bebf344a045429a30ad Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Tue, 15 Feb 2022 11:11:18 -0600 Subject: [PATCH] Fix bug in Halfspace.rotate when rotation matrix is passed --- openmc/surface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmc/surface.py b/openmc/surface.py index 146e16c286..f2b496f72d 100644 --- a/openmc/surface.py +++ b/openmc/surface.py @@ -2633,7 +2633,7 @@ class Halfspace(Region): memo = {} # If rotated surface not in memo, add it - key = (self.surface, tuple(rotation), tuple(pivot), order, inplace) + key = (self.surface, tuple(np.ravel(rotation)), tuple(pivot), order, inplace) if key not in memo: memo[key] = self.surface.rotate(rotation, pivot=pivot, order=order, inplace=inplace)