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

Contents of /trunk/dyn3d/rotatf.f90

Parent Directory Parent Directory | Revision Log Revision Log


Revision 81 - (show annotations)
Wed Mar 5 14:38:41 2014 UTC (10 years, 2 months ago) by guez
File size: 1378 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
2 ! $Header: /home/cvsroot/LMDZ4/libf/dyn3d/rotatf.F,v 1.1.1.1 2004/05/19
3 ! 12:53:05 lmdzadmin Exp $
4
5 SUBROUTINE rotatf(klevel, x, y, rot)
6
7 ! Auteur : P.Le Van
8 ! **************************************************************
9 ! . calcule le rotationnel
10 ! a tous les niveaux d'1 vecteur de comp. x et y ..
11 ! x et y etant des composantes covariantes ...
12 ! ********************************************************************
13 ! klevel, x et y sont des arguments d'entree pour le s-prog
14 ! rot est un argument de sortie pour le s-prog
15
16 USE dimens_m
17 USE paramet_m
18 USE comgeom
19 USE filtreg_m, ONLY: filtreg
20 IMPLICIT NONE
21
22
23 ! ..... variables en arguments ......
24
25 INTEGER, INTENT (IN) :: klevel
26 REAL rot(ip1jm, klevel)
27 REAL, INTENT (IN) :: x(ip1jmp1, klevel), y(ip1jm, klevel)
28
29 ! ... variables locales ...
30
31 INTEGER l, ij
32
33
34 DO l = 1, klevel
35
36 DO ij = 1, ip1jm - 1
37 rot(ij, l) = y(ij+1, l) - y(ij, l) + x(ij+iip1, l) - x(ij, l)
38 END DO
39
40 ! .... correction pour rot( iip1,j,l) ....
41 ! .... rot(iip1,j,l)= rot(1,j,l) ...
42 ! DIR$ IVDEP
43 DO ij = iip1, ip1jm, iip1
44 rot(ij, l) = rot(ij-iim, l)
45 END DO
46
47 END DO
48
49 CALL filtreg(rot, jjm, klevel, 2, 2, .FALSE.)
50
51 DO l = 1, klevel
52 DO ij = 1, ip1jm
53 rot(ij, l) = rot(ij, l)*unsairez(ij)
54 END DO
55 END DO
56
57
58 RETURN
59 END SUBROUTINE rotatf

  ViewVC Help
Powered by ViewVC 1.1.21