source: LMDZ4/branches/IPSL-CM4_IPCC_patches/libf/phylmd/minmaxqfi.F @ 5415

Last change on this file since 5415 was 524, checked in by lmdzadmin, 21 years ago

Initial revision

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 649 bytes
Line 
1!
2! $Header$
3!
4      SUBROUTINE minmaxqfi(zq,qmin,qmax,comment)
5      IMPLICIT none
6
7#include "dimensions.h"
8#include "dimphy.h"
9
10      CHARACTER*(*) comment
11      real qmin,qmax
12      real zq(klon,klev)
13
14      INTEGER jadrs(klon), jbad, k, i
15
16      DO k = 1, klev
17         jbad = 0
18         DO i = 1, klon
19         IF (zq(i,k).GT.qmax .OR. zq(i,k).LT.qmin) THEN
20            jbad = jbad + 1
21            jadrs(jbad) = i
22         ENDIF
23         ENDDO
24         IF (jbad.GT.0) THEN
25         PRINT*, comment
26         DO i = 1, jbad
27            PRINT*, "i,k,q=", jadrs(i),k,zq(jadrs(i),k)
28         ENDDO
29         ENDIF
30      ENDDO
31
32      return
33      end
Note: See TracBrowser for help on using the repository browser.