Skip to content

Commit

Permalink
Adding openmc id reset decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
pshriwise committed Nov 7, 2024
1 parent 516d0ac commit 983bb3d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/gold/nested_spheres.jou
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ set warning off
graphics pause
set journal off
set default autosize off
#CELL 4
#CELL 3
sphere radius 30.0
#{ id1 = Id("body") }
body { id1 } name "Cell_4"
body { id1 } name "Cell_3"
group "mat:void" add body { id1 }
#CELL 3
#CELL 2
sphere radius 20.0
#{ id2 = Id("body") }
body { id2 } name "Cell_3"
body { id2 } name "Cell_2"
group "mat:void" add body { id2 }
#CELL 2
#CELL 1
sphere radius 10.0
#{ id3 = Id("body") }
body { id3 } name "Cell_2"
body { id3 } name "Cell_1"
group "mat:void" add body { id3 }
graphics flush
set default autosize on
Expand Down
1 change: 1 addition & 0 deletions test/test_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def test_planes(request, run_in_tmpdir):
diff_gold_file('plane.jou')


@reset_openmc_ids
def test_nested_spheres(request, run_in_tmpdir):
inner_sphere = openmc.Sphere(r=10.0)
middle_sphere = openmc.Sphere(r=20.0)
Expand Down

0 comments on commit 983bb3d

Please sign in to comment.