/[lmdze]/trunk/dyn3d/coordij.f90
ViewVC logotype

Annotation of /trunk/dyn3d/coordij.f90

Parent Directory Parent Directory | Revision Log Revision Log


Revision 81 - (hide annotations)
Wed Mar 5 14:38:41 2014 UTC (10 years, 2 months ago) by guez
File size: 922 byte(s)
 Converted to free source form files which were still in fixed source
form. The conversion was done using the polish mode of the NAG Fortran
Compiler.

In addition to converting to free source form, the processing of the
files also:

-- indented the code (including comments);

-- set Fortran keywords to uppercase, and set all other identifiers
to lower case;

-- added qualifiers to end statements (for example "end subroutine
conflx", instead of "end");

-- changed the terminating statements of all DO loops so that each
loop ends with an ENDDO statement (instead of a labeled continue).

1 guez 3
2 guez 81 ! $Header: /home/cvsroot/LMDZ4/libf/dyn3d/coordij.F,v 1.1.1.1 2004/05/19
3     ! 12:53:05 lmdzadmin Exp $
4 guez 3
5 guez 81 SUBROUTINE coordij(lon, lat, ilon, jlat)
6 guez 3
7 guez 81 ! =======================================================================
8 guez 3
9 guez 81 ! calcul des coordonnees i et j de la maille scalaire dans
10     ! laquelle se trouve le point (lon,lat) en radian
11 guez 3
12 guez 81 ! =======================================================================
13 guez 3
14 guez 81 USE dimens_m
15     USE paramet_m
16     USE comconst
17     USE comgeom
18     USE serre
19     USE nr_util, ONLY: pi
20     IMPLICIT NONE
21     REAL lon, lat
22     INTEGER ilon, jlat
23     INTEGER i, j
24 guez 3
25    
26 guez 81 REAL zlon, zlat
27    
28     zlon = lon*pi/180.
29     zlat = lat*pi/180.
30    
31     DO i = 1, iim + 1
32     IF (rlonu(i)>zlon) THEN
33     ilon = i
34     GO TO 10
35     END IF
36     END DO
37     10 CONTINUE
38    
39     j = 0
40     DO j = 1, jjm
41     IF (rlatv(j)<zlat) THEN
42     jlat = j
43     GO TO 20
44     END IF
45     END DO
46     20 CONTINUE
47     IF (j==0) j = jjm + 1
48    
49     RETURN
50     END SUBROUTINE coordij

  ViewVC Help
Powered by ViewVC 1.1.21