I want to set a conditional breakpoint in the following Fortran snippet:
Code:
do iv = iBGN, iEND
do k = iboxlo2, iboxhi2
do j = iboxlo1, iboxhi1
do i = iboxlo0, iboxhi0
  U(i,j,k,iv) = U(i,j,k,iv) + S(i,j,k,iv)
enddo
enddo
enddo
enddo
I put a breakpoint at the middle line, right clicked->Action Point Properties->Evaluate, checked the box for Fortran, and put the following in the expression window:
Code:
if (U(i,j,k,iv) /= U(i,j,k,iv)) then
$stopall
endif
This gives the following error:
Code:
Error line 4: Syntax error at ";"
I have also tried using the ISNAN function, .ne. instead of /=, and with and without semicolon after $stopall. None worked. What is the appropriate way to set a conditional breakpoint to check for NaN?