Skip to content

Commit

Permalink
break mesh tally loop on coincidence
Browse files Browse the repository at this point in the history
  • Loading branch information
ilhamv committed Nov 21, 2024
1 parent 3a7b12e commit 676603b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mcdc/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -1845,7 +1845,7 @@ def score_mesh_tally(P_arr, distance, tally, data, mcdc):

# Sweep through the distance
distance_swept = 0.0
while distance_swept < distance:
while distance_swept < distance - COINCIDENCE_TOLERANCE:
# Find distances to the mesh grids
if ux == 0.0:
dx = INF
Expand Down

0 comments on commit 676603b

Please sign in to comment.