mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Addressing case where is not present in surface HDF5 groups.
This commit is contained in:
parent
263addffc1
commit
f2e0af378f
1 changed files with 2 additions and 2 deletions
|
|
@ -454,8 +454,8 @@ class Surface(IDManagerMixin, ABC):
|
|||
"""
|
||||
|
||||
# If this is a DAGMC surface, do nothing for now
|
||||
geom_type = group['geom_type'][()].decode()
|
||||
if geom_type == 'dagmc':
|
||||
geom_type = group.get('geom_type')
|
||||
if geom_type and geom_type[()].decode() == 'dagmc':
|
||||
return
|
||||
|
||||
surface_id = int(group.name.split('/')[-1].lstrip('surface '))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue