/[lmdze]/trunk/dyn3d/Guide/coordij.f
ViewVC logotype

Annotation of /trunk/dyn3d/Guide/coordij.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 132 - (hide annotations)
Fri Mar 20 16:31:06 2015 UTC (9 years, 2 months ago) by guez
File size: 748 byte(s)
Removed procedure jacobi, which was a copy of the file from Numerical
Recipes in Fortran 77. Refer to the Numer_Rec_95 library instead.

There was a strange line in procedure coordij: j cannot be equal to 0
after the loop on j.

1 guez 127 module coordij_m
2 guez 3
3 guez 127 IMPLICIT NONE
4 guez 3
5 guez 127 contains
6 guez 3
7 guez 127 SUBROUTINE coordij(lon, lat, ilon, jlat)
8 guez 3
9 guez 127 ! From LMDZ4/libf/dyn3d/coordij.F, version 1.1.1.1 2004/05/19 12:53:05
10 guez 3
11 guez 132 ! Calcul des coordonnées ilon et jlat de la maille scalaire dans
12     ! laquelle se trouve le point (lon, lat).
13 guez 3
14 guez 132 USE comgeom, only: rlonu, rlatv
15 guez 127 USE dimens_m, only: iim, jjm
16 guez 3
17 guez 132 REAL, intent(in):: lon, lat ! in rad
18     INTEGER, intent(out):: ilon, jlat
19 guez 3
20 guez 132 !----------------------------------------------------------
21 guez 81
22 guez 132 ilon = 1
23     do while (ilon <= iim .and. rlonu(ilon) <= lon)
24     ilon = ilon + 1
25     end do
26 guez 81
27 guez 132 jlat = 1
28     do while (jlat <= jjm - 1 .and. rlatv(jlat) >= lat)
29     jlat = jlat + 1
30     end do
31 guez 81
32 guez 127 END SUBROUTINE coordij
33 guez 81
34 guez 127 end module coordij_m

  ViewVC Help
Powered by ViewVC 1.1.21