Skip to content

Commit

Permalink
if directions==0 bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
spasmann committed Jan 15, 2024
1 parent f6e5e9f commit 5ace684
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mcdc/constant.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
INF = 1e10
PI = math.acos(-1.0)
SHIFT = 1e-10 # To ensure lattice, surface, and mesh crossings
PREC = 1.0 + 1e-8 # Precision factor to determine if a distance is smaller
PREC = 1.0 + 1e-5 # Precision factor to determine if a distance is smaller
BANKMAX = 100 # Default maximum active bank

# Domain Decomp mesh crossing flags
Expand Down
2 changes: 2 additions & 0 deletions mcdc/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ def domain_crossing(P, mcdc):
mesh = mcdc["technique"]["domain_mesh"]
# Determine which dimension is crossed
x, y, z, t, directions = mesh_crossing_evaluate(P, mesh)
if len(directions) == 0:
return
flag = directions[0]

if len(directions) > 1:
Expand Down

0 comments on commit 5ace684

Please sign in to comment.