Last change
on this file since 5354 was
5337,
checked in by Laurent Fairhead, 3 weeks ago
|
Getting rid of dependance to dynamics
|
File size:
705 bytes
|
Line | |
---|
1 | subroutine minmaxqfi2(zq,qmin,qmax,comment) |
---|
2 | ! |
---|
3 | USE dimphy |
---|
4 | USE infotrac_phy, ONLY: nbtr |
---|
5 | |
---|
6 | ! character*20 comment |
---|
7 | character(len=*) :: comment |
---|
8 | real :: qmin,qmax |
---|
9 | real :: zq(klon,klev) |
---|
10 | |
---|
11 | integer :: ijmin, lmin, ijlmin |
---|
12 | integer :: ijmax, lmax, ijlmax |
---|
13 | |
---|
14 | integer :: ismin,ismax |
---|
15 | |
---|
16 | ijlmin=ismin(klon*klev,zq,1) |
---|
17 | lmin=(ijlmin-1)/klon+1 |
---|
18 | ijmin=ijlmin-(lmin-1)*klon |
---|
19 | zqmin=zq(ijmin,lmin) |
---|
20 | |
---|
21 | ijlmax=ismax(klon*klev,zq,1) |
---|
22 | lmax=(ijlmax-1)/klon+1 |
---|
23 | ijmax=ijlmax-(lmax-1)*klon |
---|
24 | zqmax=zq(ijmax,lmax) |
---|
25 | |
---|
26 | if(zqmin.lt.qmin.or.zqmax.gt.qmax) & |
---|
27 | write(*,9999) comment, & |
---|
28 | ijmin,lmin,zqmin,ijmax,lmax,zqmax |
---|
29 | |
---|
30 | return |
---|
31 | 9999 format(a20,2(' q(',i4,',',i2,')=',e12.5)) |
---|
32 | end subroutine minmaxqfi2 |
---|
Note: See
TracBrowser
for help on using the repository browser.