From 676603b9fc28ae1e7c6d7e51cd516df7c8df1576 Mon Sep 17 00:00:00 2001 From: Ilham Variansyah Date: Thu, 21 Nov 2024 11:48:41 +0700 Subject: [PATCH] break mesh tally loop on coincidence --- mcdc/kernel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mcdc/kernel.py b/mcdc/kernel.py index 6ecf2fa4..54bff2ea 100644 --- a/mcdc/kernel.py +++ b/mcdc/kernel.py @@ -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