Last change
on this file since 5319 was
5285,
checked in by abarral, 10 days ago
|
As discussed internally, remove generic ONLY: ... for new _mod_h 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:
861 bytes
|
Rev | Line | |
---|
[524] | 1 | ! |
---|
| 2 | ! $Header$ |
---|
| 3 | ! |
---|
[5246] | 4 | SUBROUTINE coordij(lon,lat,ilon,jlat) |
---|
[524] | 5 | |
---|
[5246] | 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 | !======================================================================= |
---|
[524] | 12 | |
---|
[5281] | 13 | USE comgeom_mod_h |
---|
[5246] | 14 | USE comconst_mod, ONLY: pi |
---|
[524] | 15 | |
---|
[5271] | 16 | USE dimensions_mod, ONLY: iim, jjm, llm, ndm |
---|
[5285] | 17 | USE paramet_mod_h |
---|
[5271] | 18 | IMPLICIT NONE |
---|
[5246] | 19 | REAL :: lon,lat |
---|
| 20 | INTEGER :: ilon,jlat |
---|
| 21 | INTEGER :: i,j |
---|
[524] | 22 | |
---|
[5271] | 23 | |
---|
[5272] | 24 | |
---|
[524] | 25 | |
---|
[5246] | 26 | real :: zlon,zlat |
---|
[524] | 27 | |
---|
[5246] | 28 | zlon=lon*pi/180. |
---|
| 29 | zlat=lat*pi/180. |
---|
[524] | 30 | |
---|
[5246] | 31 | DO i=1,iim+1 |
---|
| 32 | IF (rlonu(i).GT.zlon) THEN |
---|
| 33 | ilon=i |
---|
| 34 | GOTO 10 |
---|
| 35 | ENDIF |
---|
| 36 | ENDDO |
---|
| 37 | 10 CONTINUE |
---|
[524] | 38 | |
---|
[5246] | 39 | j=0 |
---|
| 40 | DO j=1,jjm |
---|
| 41 | IF(rlatv(j).LT.zlat) THEN |
---|
| 42 | jlat=j |
---|
| 43 | GOTO 20 |
---|
| 44 | ENDIF |
---|
| 45 | ENDDO |
---|
| 46 | 20 CONTINUE |
---|
| 47 | IF(j.EQ.0) j=jjm+1 |
---|
| 48 | |
---|
| 49 | RETURN |
---|
| 50 | END SUBROUTINE coordij |
---|
Note: See
TracBrowser
for help on using the repository browser.