Last change
on this file since 5281 was
5281,
checked in by abarral, 4 days ago
|
Turn comgeom.h comgeom2.h into modules
|
-
Property copyright set to
Name of program: LMDZ Creation date: 1984 Version: LMDZ5 License: CeCILL version 2 Holder: Laboratoire de m\'et\'eorologie dynamique, CNRS, UMR 8539 See the license file in the root directory
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
993 bytes
|
Line | |
---|
1 | ! |
---|
2 | ! $Header$ |
---|
3 | ! |
---|
4 | SUBROUTINE coordij(lon,lat,ilon,jlat) |
---|
5 | |
---|
6 | !======================================================================= |
---|
7 | ! |
---|
8 | ! calcul des coordonnees i et j de la maille scalaire dans |
---|
9 | ! laquelle se trouve le point (lon,lat) en radian |
---|
10 | ! |
---|
11 | !======================================================================= |
---|
12 | |
---|
13 | USE comgeom_mod_h |
---|
14 | USE comconst_mod, ONLY: pi |
---|
15 | |
---|
16 | USE dimensions_mod, ONLY: iim, jjm, llm, ndm |
---|
17 | USE paramet_mod_h, ONLY: iip1, iip2, iip3, jjp1, llmp1, llmp2, llmm1, kftd, ip1jm, ip1jmp1, & |
---|
18 | ip1jmi1, ijp1llm, ijmllm, mvar, jcfil, jcfllm |
---|
19 | IMPLICIT NONE |
---|
20 | REAL :: lon,lat |
---|
21 | INTEGER :: ilon,jlat |
---|
22 | INTEGER :: i,j |
---|
23 | |
---|
24 | |
---|
25 | |
---|
26 | |
---|
27 | real :: zlon,zlat |
---|
28 | |
---|
29 | zlon=lon*pi/180. |
---|
30 | zlat=lat*pi/180. |
---|
31 | |
---|
32 | DO i=1,iim+1 |
---|
33 | IF (rlonu(i).GT.zlon) THEN |
---|
34 | ilon=i |
---|
35 | GOTO 10 |
---|
36 | ENDIF |
---|
37 | ENDDO |
---|
38 | 10 CONTINUE |
---|
39 | |
---|
40 | j=0 |
---|
41 | DO j=1,jjm |
---|
42 | IF(rlatv(j).LT.zlat) THEN |
---|
43 | jlat=j |
---|
44 | GOTO 20 |
---|
45 | ENDIF |
---|
46 | ENDDO |
---|
47 | 20 CONTINUE |
---|
48 | IF(j.EQ.0) j=jjm+1 |
---|
49 | |
---|
50 | RETURN |
---|
51 | END SUBROUTINE coordij |
---|
Note: See
TracBrowser
for help on using the repository browser.