mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Compatiblity module now makes all Cells/Surfaces compatible prior to assigning auto IDs
This commit is contained in:
parent
e6ab25e7f3
commit
f9d303d654
1 changed files with 6 additions and 0 deletions
|
|
@ -830,7 +830,13 @@ def get_openmc_geometry(opencg_geometry):
|
|||
OPENMC_LATTICES.clear()
|
||||
OPENCG_LATTICES.clear()
|
||||
|
||||
# Make the entire geometry "compatible" before assigning auto IDs
|
||||
universes = opencg_geometry.getAllUniverses()
|
||||
for universe_id, universe in universes.items():
|
||||
make_opencg_cells_compatible(universe)
|
||||
|
||||
opencg_geometry.assignAutoIds()
|
||||
|
||||
opencg_root_universe = opencg_geometry._root_universe
|
||||
openmc_root_universe = get_openmc_universe(opencg_root_universe)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue