source: LMDZ5/trunk/libf/phylmd/minmaxqfi.F90 @ 2092

Last change on this file since 2092 was 1907, checked in by lguez, 11 years ago

Added a copyright property to every file of the distribution, except
for the fcm files (which have their own copyright). Use svn propget on
a file to see the copyright. For instance:

$ svn propget copyright libf/phylmd/physiq.F90
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

Also added the files defining the CeCILL version 2 license, in French
and English, at the top of the LMDZ tree.

  • 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: 726 bytes
Line 
1!
2! $Id: minmaxqfi.F90 1907 2013-11-26 13:10:46Z fhourdin $
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  DO k = 1, klev
18     jbad = 0
19     DO i = 1, klon
20        IF (zq(i,k).GT.qmax .OR. zq(i,k).LT.qmin) THEN
21           jbad = jbad + 1
22           jadrs(jbad) = i
23        ENDIF
24     ENDDO
25     IF (jbad.GT.0) THEN
26        WRITE(*,*)comment
27        DO i = 1, jbad
28           WRITE(*,*) "i,k,q=", jadrs(i),k,zq(jadrs(i),k)
29        ENDDO
30     ENDIF
31  ENDDO
32 
33END SUBROUTINE minmaxqfi
Note: See TracBrowser for help on using the repository browser.