Last change
on this file since 5310 was
5271,
checked in by abarral, 7 weeks ago
|
Move dimensions.h into a module
Nb: doesn't compile yet
|
File size:
737 bytes
|
Rev | Line | |
---|
[5246] | 1 | subroutine minmaxsource(zq,qmin,qmax,comment) |
---|
[2630] | 2 | |
---|
[5246] | 3 | USE dimphy |
---|
| 4 | USE infotrac |
---|
[5271] | 5 | USE dimensions_mod, ONLY: iim, jjm, llm, ndm |
---|
[2630] | 6 | |
---|
[5246] | 7 | ! character*20 comment |
---|
| 8 | character(len=*) :: comment |
---|
| 9 | real :: qmin,qmax |
---|
| 10 | real :: zq(klon,nbtr) |
---|
[2630] | 11 | |
---|
[5246] | 12 | integer :: ijmin, lmin, ijlmin |
---|
| 13 | integer :: ijmax, lmax, ijlmax |
---|
[2630] | 14 | |
---|
[5246] | 15 | integer :: ismin,ismax |
---|
[2630] | 16 | |
---|
[5246] | 17 | ijlmin=ismin(klon*nbtr,zq,1) |
---|
| 18 | lmin=(ijlmin-1)/klon+1 |
---|
| 19 | ijmin=ijlmin-(lmin-1)*klon |
---|
| 20 | zqmin=zq(ijmin,lmin) |
---|
[2630] | 21 | |
---|
[5246] | 22 | ijlmax=ismax(klon*nbtr,zq,1) |
---|
| 23 | lmax=(ijlmax-1)/klon+1 |
---|
| 24 | ijmax=ijlmax-(lmax-1)*klon |
---|
| 25 | zqmax=zq(ijmax,lmax) |
---|
[2630] | 26 | |
---|
[5246] | 27 | if(zqmin.lt.qmin.or.zqmax.gt.qmax) & |
---|
| 28 | write(*,9999) comment, & |
---|
| 29 | ijmin,lmin,zqmin,ijmax,lmax,zqmax |
---|
[2630] | 30 | |
---|
[5246] | 31 | return |
---|
| 32 | 9999 format(a20,2(' q(',i4,',',i2,')=',e12.5)) |
---|
| 33 | end subroutine minmaxsource |
---|
Note: See
TracBrowser
for help on using the repository browser.