mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Fix bug in Halfspace.rotate when rotation matrix is passed
This commit is contained in:
parent
de50a7bfca
commit
3944c2f1e8
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue