Go to the source code of this file.
|
subroutine | check4nans (meqn, mbc, mx, my, q, t, ichecknan) |
| Check for NANs in solution q. More...
|
|
◆ check4nans()
subroutine check4nans |
( |
integer, intent(in) |
meqn, |
|
|
integer, intent(in) |
mbc, |
|
|
integer, intent(in) |
mx, |
|
|
integer, intent(in) |
my, |
|
|
real(kind=8), dimension(meqn,1-mbc:mx+mbc,1-mbc:my+mbc), intent(in) |
q, |
|
|
real(kind=8), intent(in) |
t, |
|
|
integer, intent(in) |
ichecknan |
|
) |
| |
Check for NANs in solution q.
Definition at line 4 of file check4nans.f90.
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)