Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/openmc_mcnp_adapter/openmc_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down