Last change
on this file since 5409 was
5117,
checked in by abarral, 5 months ago
|
rename modules properly lmdz_*
move some unused files to obsolete/
(lint) uppercase fortran keywords
|
-
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:
834 bytes
|
Rev | Line | |
---|
[5099] | 1 | |
---|
[1191] | 2 | ! $Id: minmaxqfi.F90 5117 2024-07-24 14:23:34Z evignon $ |
---|
[5099] | 3 | |
---|
[1191] | 4 | SUBROUTINE minmaxqfi(zq,qmin,qmax,comment) |
---|
| 5 | USE dimphy |
---|
[5112] | 6 | USE lmdz_print_control, ONLY: prt_level |
---|
[1191] | 7 | IMPLICIT NONE |
---|
[524] | 8 | |
---|
[1191] | 9 | ! Entrees |
---|
| 10 | REAL,DIMENSION(klon,klev), INTENT(IN) :: zq |
---|
| 11 | REAL,INTENT(IN) :: qmin,qmax |
---|
| 12 | CHARACTER(LEN=*),INTENT(IN) :: comment |
---|
[524] | 13 | |
---|
[1191] | 14 | ! Local |
---|
| 15 | INTEGER,DIMENSION(klon) :: jadrs |
---|
| 16 | INTEGER :: i, jbad, k |
---|
[2098] | 17 | |
---|
[1191] | 18 | DO k = 1, klev |
---|
| 19 | jbad = 0 |
---|
| 20 | DO i = 1, klon |
---|
[5082] | 21 | IF (zq(i,k)>qmax .OR. zq(i,k)<qmin) THEN |
---|
[1191] | 22 | jbad = jbad + 1 |
---|
| 23 | jadrs(jbad) = i |
---|
| 24 | ENDIF |
---|
| 25 | ENDDO |
---|
[5082] | 26 | IF (jbad>0) THEN |
---|
[4912] | 27 | WRITE(*,*)comment, " k = ", k, "jbad > 0" |
---|
[5117] | 28 | IF (prt_level >= 1) THEN |
---|
[2098] | 29 | DO i = 1, jbad |
---|
| 30 | WRITE(*,*) "i,q=", jadrs(i), zq(jadrs(i),k) |
---|
| 31 | ENDDO |
---|
| 32 | end if |
---|
[1191] | 33 | ENDIF |
---|
| 34 | ENDDO |
---|
| 35 | |
---|
| 36 | END SUBROUTINE minmaxqfi |
---|
Note: See
TracBrowser
for help on using the repository browser.