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

Contents of /trunk/dyn3d/dudv1.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 88 - (show annotations)
Tue Mar 11 15:09:02 2014 UTC (10 years, 2 months ago) by guez
File size: 1386 byte(s)
Removed useless argument mode of subroutine read_reanalyse.

1 module dudv1_m
2
3 IMPLICIT NONE
4
5 contains
6
7 SUBROUTINE dudv1(vorpot, pbaru, pbarv, du, dv)
8
9 ! From LMDZ4/libf/dyn3d/dudv1.F, version 1.1.1.1, 2004/05/19 12:53:06
10
11 ! Author: P. Le Van
12
13 ! Objet: calcul du terme de rotation. Ce terme est ajouté à
14 ! d(ucov)/dt et à d(vcov)/dt.
15
16 USE dimens_m, ONLY: iim, llm
17 USE paramet_m, ONLY: iip1, iip2, ip1jm, ip1jmp1
18
19 REAL, intent(in):: vorpot(ip1jm, llm)
20 REAL, intent(in):: pbaru(ip1jmp1, llm), pbarv(ip1jm, llm)
21
22 real du(ip1jmp1, llm), dv(ip1jm, llm)
23 ! du et dv sont des arguments de sortie pour le s-pg
24
25 ! Local:
26 INTEGER l, ij
27
28 !----------------------------------------------------------------------
29
30 DO l = 1, llm
31 DO ij = iip2, ip1jm - 1
32 du(ij, l) = 0.125 * (vorpot(ij - iip1, l) + vorpot(ij, l)) &
33 * (pbarv(ij - iip1, l) + pbarv(ij - iim, l) + pbarv(ij, l) &
34 + 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)) &
39 * (pbaru(ij, l) + pbaru(ij + 1, l) + pbaru(ij + iip1, l) &
40 + pbaru(ij + iip2, l))
41 END DO
42
43 ! correction pour dv(1, j, l)
44 ! dv(1, j, l) = dv(iip1, j, l)
45 DO ij = 1, ip1jm, iip1
46 dv(ij, l) = dv(ij + iim, l)
47 END DO
48 END DO
49
50 END SUBROUTINE dudv1
51
52 end module dudv1_m

  ViewVC Help
Powered by ViewVC 1.1.21