diff --git a/src/openmc_mcnp_adapter/openmc_conversion.py b/src/openmc_mcnp_adapter/openmc_conversion.py index 6f02dba..dbebdb3 100644 --- a/src/openmc_mcnp_adapter/openmc_conversion.py +++ b/src/openmc_mcnp_adapter/openmc_conversion.py @@ -632,12 +632,12 @@ def add_to_ordered(c): for n in cell.region: if n.surface.boundary_type == 'transmission': n.surface.boundary_type = 'vacuum' - root_universe.remove_cell(cell) + root_universe.add_cell(cell) elif isinstance(cell.region, openmc.Halfspace): if 'imp:n' in c['parameters'] and float(c['parameters']['imp:n']) == 0.0: if cell.region.surface.boundary_type == 'transmission': cell.region.surface.boundary_type = 'vacuum' - root_universe.remove_cell(cell) + root_universe.add_cell(cell) # Determine material fill if present -- this is not assigned until later # in case it's used in a lattice (need to create an extra universe then)