Skip to content

Commit 944c6ad

Browse files
sbryngelsonclaude
andcommitted
Replace error stop with s_mpi_abort in NaN timestep output check
CLAUDE.md forbids error stop; use s_mpi_abort for proper MPI-aware termination. The print * before the abort is retained since it logs the exact coordinates (j,k,l), variable index, rank, and timestep — information that doesn't fit in the abort message string. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 8efac1d commit 944c6ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/simulation/m_start_up.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ contains
965965
do j = 0, m
966966
if (ieee_is_nan(real(q_cons_ts(stor)%vf(i)%sf(j, k, l), kind=wp))) then
967967
print *, "NaN(s) in timestep output.", j, k, l, i, proc_rank, t_step, m, n, p
968-
error stop "NaN(s) in timestep output."
968+
call s_mpi_abort("NaN(s) in timestep output.")
969969
end if
970970
end do
971971
end do

0 commit comments

Comments
 (0)