Skip to content

Commit 1c2b7ce

Browse files
sbryngelsonclaude
andcommitted
Replace error stop with s_mpi_abort in NaN diagnostic
CLAUDE.md Critical Rules forbid error stop. Use s_mpi_abort for proper MPI-aware termination in the Intel NaN detection blocks. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4e32552 commit 1c2b7ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/common/m_mpi_common.fpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ contains
938938
#if defined(__INTEL_COMPILER)
939939
if (ieee_is_nan(q_comm(i)%sf(j + unpack_offset, k, l))) then
940940
print *, "Error", j, k, l, i
941-
error stop "NaN(s) in recv"
941+
call s_mpi_abort("NaN(s) in recv")
942942
end if
943943
#endif
944944
end do
@@ -993,7 +993,7 @@ contains
993993
#if defined(__INTEL_COMPILER)
994994
if (ieee_is_nan(q_comm(i)%sf(j, k + unpack_offset, l))) then
995995
print *, "Error", j, k, l, i
996-
error stop "NaN(s) in recv"
996+
call s_mpi_abort("NaN(s) in recv")
997997
end if
998998
#endif
999999
end do
@@ -1052,7 +1052,7 @@ contains
10521052
#if defined(__INTEL_COMPILER)
10531053
if (ieee_is_nan(q_comm(i)%sf(j, k, l + unpack_offset))) then
10541054
print *, "Error", j, k, l, i
1055-
error stop "NaN(s) in recv"
1055+
call s_mpi_abort("NaN(s) in recv")
10561056
end if
10571057
#endif
10581058
end do

0 commit comments

Comments
 (0)