/[lmdze]/trunk/dyn3d/dudv1.f
ViewVC logotype

Contents of /trunk/dyn3d/dudv1.f

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
Original Path: trunk/dyn3d/dudv1.f90
File size: 1340 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/dudv1.F,v 1.1.1.1 2004/05/19
3 ! 12:53:06 lmdzadmin Exp $
4
5 SUBROUTINE dudv1(vorpot, pbaru, pbarv, du, dv)
6 USE dimens_m
7 USE paramet_m
8 IMPLICIT NONE
9
10 ! -----------------------------------------------------------------------
11
12 ! Auteur: P. Le Van
13 ! -------
14
15 ! Objet:
16 ! ------
17 ! calcul du terme de rotation
18 ! ce terme est ajoute a d(ucov)/dt et a d(vcov)/dt ..
19 ! vorpot, pbaru et pbarv sont des arguments d'entree pour le s-pg ..
20 ! du et dv sont des arguments de sortie pour le s-pg ..
21
22 ! -----------------------------------------------------------------------
23
24
25 REAL vorpot(ip1jm, llm), pbaru(ip1jmp1, llm), pbarv(ip1jm, llm), &
26 du(ip1jmp1, llm), dv(ip1jm, llm)
27 INTEGER l, ij
28
29
30 DO l = 1, llm
31
32 DO ij = iip2, ip1jm - 1
33 du(ij, l) = 0.125*(vorpot(ij-iip1,l)+vorpot(ij,l))* &
34 (pbarv(ij-iip1,l)+pbarv(ij-iim,l)+pbarv(ij,l)+pbarv(ij+1,l))
35 END DO
36
37 DO ij = 1, ip1jm - 1
38 dv(ij+1, l) = -0.125*(vorpot(ij,l)+vorpot(ij+1,l))*(pbaru(ij,l)+pbaru( &
39 ij+1,l)+pbaru(ij+iip1,l)+pbaru(ij+iip2,l))
40 END DO
41
42 ! .... correction pour dv( 1,j,l ) .....
43 ! .... dv(1,j,l)= dv(iip1,j,l) ....
44
45 ! DIR$ IVDEP
46 DO ij = 1, ip1jm, iip1
47 dv(ij, l) = dv(ij+iim, l)
48 END DO
49
50 END DO
51 RETURN
52 END SUBROUTINE dudv1

  ViewVC Help
Powered by ViewVC 1.1.21