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