|
Last change
on this file since 3209 was
1422,
checked in by milmd, 11 years ago
|
|
In GENERIC, MARS and COMMON models replace some include files by modules (usefull for decoupling physics with dynamics).
|
|
File size:
904 bytes
|
| Line | |
|---|
| 1 | ! |
|---|
| 2 | ! $Header$ |
|---|
| 3 | ! |
|---|
| 4 | SUBROUTINE coordij(lon,lat,ilon,jlat) |
|---|
| 5 | |
|---|
| 6 | c======================================================================= |
|---|
| 7 | c |
|---|
| 8 | c calcul des coordonnees i et j de la maille scalaire dans |
|---|
| 9 | c laquelle se trouve le point (lon,lat) en radian |
|---|
| 10 | c |
|---|
| 11 | c======================================================================= |
|---|
| 12 | USE comconst_mod, ONLY: pi |
|---|
| 13 | |
|---|
| 14 | IMPLICIT NONE |
|---|
| 15 | REAL lon,lat |
|---|
| 16 | INTEGER ilon,jlat |
|---|
| 17 | INTEGER i,j |
|---|
| 18 | |
|---|
| 19 | #include "dimensions.h" |
|---|
| 20 | #include "paramet.h" |
|---|
| 21 | #include "comgeom.h" |
|---|
| 22 | |
|---|
| 23 | real zlon,zlat |
|---|
| 24 | |
|---|
| 25 | zlon=lon*pi/180. |
|---|
| 26 | zlat=lat*pi/180. |
|---|
| 27 | |
|---|
| 28 | DO i=1,iim+1 |
|---|
| 29 | IF (rlonu(i).GT.zlon) THEN |
|---|
| 30 | ilon=i |
|---|
| 31 | GOTO 10 |
|---|
| 32 | ENDIF |
|---|
| 33 | ENDDO |
|---|
| 34 | 10 CONTINUE |
|---|
| 35 | |
|---|
| 36 | j=0 |
|---|
| 37 | DO j=1,jjm |
|---|
| 38 | IF(rlatv(j).LT.zlat) THEN |
|---|
| 39 | jlat=j |
|---|
| 40 | GOTO 20 |
|---|
| 41 | ENDIF |
|---|
| 42 | ENDDO |
|---|
| 43 | 20 CONTINUE |
|---|
| 44 | IF(j.EQ.0) j=jjm+1 |
|---|
| 45 | |
|---|
| 46 | RETURN |
|---|
| 47 | END |
|---|
Note: See
TracBrowser
for help on using the repository browser.