3 subroutine check4nans(meqn,mbc,mx,my,q,t,ichecknan)
8 integer,
intent(in) :: meqn, mbc, mx, my, ichecknan
9 real(kind=8),
intent(in) :: t, q(meqn,1-mbc:mx+mbc,1-mbc:my+mbc)
20 if (.not. (q(m,i,j) == q(m,i,j)))
then 22 print *,
'SOLUTION ERROR --- ABORTING CALCULATION' 23 print *,
'At ichecknan = ',ichecknan
24 print *,
' mx,my,t:',mx,my,t
25 print *,
' m,i,j:',m,i,j
26 print *,
' q(m,i,j) = ',q(m,i,j)
subroutine check4nans(meqn, mbc, mx, my, q, t, ichecknan)
Check for NANs in solution q.