Last change
on this file since 5449 was
5128,
checked in by abarral, 6 months ago
|
Correct bug in vlspltqs_loc.f90 from r2270 where we call SSUM with incorrect arguments.
Merge the three different versions of abort_gcm into one
Fix seq, para 3D compilation broken from r5107 onwards
(lint) usual + Remove uneeded fixed-form continuations
|
File size:
803 bytes
|
Rev | Line | |
---|
[2630] | 1 | SUBROUTINE checknanqfi(zq,qmin,qmax,comment) |
---|
| 2 | USE dimphy |
---|
[5128] | 3 | |
---|
[2630] | 4 | IMPLICIT NONE |
---|
| 5 | |
---|
| 6 | ! Entrees |
---|
| 7 | REAL,DIMENSION(klon,klev), INTENT(IN) :: zq |
---|
| 8 | REAL,INTENT(IN) :: qmin,qmax |
---|
| 9 | CHARACTER(LEN=*),INTENT(IN) :: comment |
---|
| 10 | |
---|
| 11 | ! Local |
---|
| 12 | INTEGER,DIMENSION(klon) :: jadrs |
---|
| 13 | INTEGER :: i, jbad, k |
---|
| 14 | |
---|
| 15 | DO k = 1, klev |
---|
| 16 | jbad = 0 |
---|
| 17 | DO i = 1, klon |
---|
| 18 | ! IF (zq(i,k).GT.qmax .OR. zq(i,k).LT.qmin) THEN |
---|
| 19 | IF (isnan(zq(i,k))) THEN |
---|
| 20 | jbad = jbad + 1 |
---|
| 21 | jadrs(jbad) = i |
---|
| 22 | ENDIF |
---|
| 23 | ENDDO |
---|
[5082] | 24 | IF (jbad>0) THEN |
---|
[2630] | 25 | WRITE(*,*)comment |
---|
| 26 | DO i = 1, jbad |
---|
| 27 | WRITE(*,*) "i,k,q=", jadrs(i),k,zq(jadrs(i),k) |
---|
| 28 | CALL abort_gcm(comment, 'NaN founded',1) |
---|
| 29 | ENDDO |
---|
| 30 | ENDIF |
---|
| 31 | ENDDO |
---|
| 32 | |
---|
| 33 | END SUBROUTINE checknanqfi |
---|
Note: See
TracBrowser
for help on using the repository browser.