source: LMDZ5/branches/LMDZ6_rc0/libf/phylmd/minmaxqfi.F90 @ 2275

Last change on this file since 2275 was 2160, checked in by Laurent Fairhead, 10 years ago

Merged trunk changes -r2070:2158 into testing branch. Compilation problems introduced by revision r2155 have been corrected by hand

  • Property copyright set to
    Name of program: LMDZ
    Creation date: 1984
    Version: LMDZ5
    License: CeCILL version 2
    Holder: Laboratoire de m\'et\'eorologie dynamique, CNRS, UMR 8539
    See the license file in the root directory
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 827 bytes
Line 
1!
2! $Id: minmaxqfi.F90 2160 2014-11-28 15:36:29Z fairhead $
3!
4SUBROUTINE minmaxqfi(zq,qmin,qmax,comment)
5  USE dimphy
6  IMPLICIT NONE
7
8! Entrees
9  REAL,DIMENSION(klon,klev), INTENT(IN)   :: zq
10  REAL,INTENT(IN)                         :: qmin,qmax
11  CHARACTER(LEN=*),INTENT(IN)             :: comment
12
13! Local 
14  INTEGER,DIMENSION(klon)     :: jadrs
15  INTEGER                     :: i, jbad, k
16
17  include "iniprint.h"
18 
19  DO k = 1, klev
20     jbad = 0
21     DO i = 1, klon
22        IF (zq(i,k).GT.qmax .OR. zq(i,k).LT.qmin) THEN
23           jbad = jbad + 1
24           jadrs(jbad) = i
25        ENDIF
26     ENDDO
27     IF (jbad.GT.0) THEN
28        WRITE(*,*)comment, "k = ", k, "jbad > 0"
29        if (prt_level >= 1) then
30           DO i = 1, jbad
31              WRITE(*,*) "i,q=", jadrs(i), zq(jadrs(i),k)
32           ENDDO
33        end if
34     ENDIF
35  ENDDO
36 
37END SUBROUTINE minmaxqfi
Note: See TracBrowser for help on using the repository browser.