mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
Merge pull request #666 from paulromano/hotfix-filltype
HOTFIX: Fix use of fill_type in universe module
This commit is contained in:
commit
d21ea5697e
1 changed files with 3 additions and 3 deletions
|
|
@ -130,7 +130,7 @@ class Universe(object):
|
|||
Parameters
|
||||
----------
|
||||
point : 3-tuple of float
|
||||
Cartesian coordinatesof the point
|
||||
Cartesian coordinates of the point
|
||||
|
||||
Returns
|
||||
-------
|
||||
|
|
@ -142,9 +142,9 @@ class Universe(object):
|
|||
p = np.asarray(point)
|
||||
for cell in self._cells.values():
|
||||
if p in cell:
|
||||
if cell._type in ('normal', 'void'):
|
||||
if cell.fill_type in ('material', 'distribmat', 'void'):
|
||||
return [self, cell]
|
||||
elif cell._type == 'fill':
|
||||
elif cell.fill_type == 'universe':
|
||||
if cell.translation is not None:
|
||||
p -= cell.translation
|
||||
if cell.rotation is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue