Last change
on this file since 5274 was
5272,
checked in by abarral, 8 days ago
|
Turn paramet.h into a module
|
-
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:
995 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 comconst_mod, ONLY: pi |
---|
14 | |
---|
15 | USE dimensions_mod, ONLY: iim, jjm, llm, ndm |
---|
16 | USE paramet_mod_h, ONLY: iip1, iip2, iip3, jjp1, llmp1, llmp2, llmm1, kftd, ip1jm, ip1jmp1, & |
---|
17 | ip1jmi1, ijp1llm, ijmllm, mvar, jcfil, jcfllm |
---|
18 | IMPLICIT NONE |
---|
19 | REAL :: lon,lat |
---|
20 | INTEGER :: ilon,jlat |
---|
21 | INTEGER :: i,j |
---|
22 | |
---|
23 | |
---|
24 | |
---|
25 | include "comgeom.h" |
---|
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.