Last change
on this file since 1 was
1,
checked in by lfita, 10 years ago
|
- -- --- Opening of the WRF+LMDZ coupling repository --- -- -
WRF: version v3.3
LMDZ: version v1818
More details in:
|
File size:
777 bytes
|
Line | |
---|
1 | ! |
---|
2 | ! $Id: minmaxqfi.F90 1279 2009-12-10 09:02:56Z fairhead $ |
---|
3 | ! |
---|
4 | SUBROUTINE 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 | |
---|
33 | END SUBROUTINE minmaxqfi |
---|
Note: See
TracBrowser
for help on using the repository browser.