mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Apply @shimwell suggestions from code review
Co-authored-by: Jonathan Shimwell <drshimwell@gmail.com>
This commit is contained in:
parent
dd7a25c570
commit
e0be9de086
1 changed files with 3 additions and 1 deletions
|
|
@ -110,7 +110,8 @@ def test_rejection(run_in_tmpdir):
|
|||
)
|
||||
cell1 = openmc.Cell(fill=mat, region=-sph1)
|
||||
cell2 = openmc.Cell(fill=mat, region=-sph2)
|
||||
cell3 = openmc.Cell(region=+sph1 & +sph2 & -cube)
|
||||
non_source_region = +sph1 & +sph2 & -cube
|
||||
cell3 = openmc.Cell(region=non_source_region)
|
||||
model = openmc.Model()
|
||||
model.geometry = openmc.Geometry([cell1, cell2, cell3])
|
||||
model.settings.particles = 100
|
||||
|
|
@ -130,5 +131,6 @@ def test_rejection(run_in_tmpdir):
|
|||
joint_region = cell1.region | cell2.region
|
||||
for p in particles:
|
||||
assert p.r in joint_region
|
||||
assert p.r not in non_source_region
|
||||
|
||||
openmc.lib.finalize()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue