mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Examine if the region exists before removing redundant surfaces
This commit is contained in:
parent
726adfb46c
commit
2ace13378c
1 changed files with 2 additions and 1 deletions
|
|
@ -568,7 +568,8 @@ class Geometry:
|
|||
# Iterate through all cells contained in the geometry
|
||||
for cell in self.get_all_cells().values():
|
||||
# Recursively remove redundant surfaces from regions
|
||||
cell.region.remove_redundant_surfaces(redundant_surfaces)
|
||||
if cell.region:
|
||||
cell.region.remove_redundant_surfaces(redundant_surfaces)
|
||||
|
||||
def determine_paths(self, instances_only=False):
|
||||
"""Determine paths through CSG tree for cells and materials.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue