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

Contents of /trunk/dyn3d/tourpot.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 79 - (show annotations)
Fri Feb 28 17:52:47 2014 UTC (10 years, 2 months ago) by guez
Original Path: trunk/dyn3d/tourpot.f90
File size: 1347 byte(s)
Moved procedure iniconst inside module comconst. Removed useless
variables of module comconst: im, jm, lllm, imp1, jmp1, lllmm1,
lllmp1, lcl, cotot, unsim. Move definition of dtvr that was in
dynetat0 and etat0 to iniconst. Moved comparison of dtvr from day_step
and start.nc that was in gcm to dynetat0. Moved call to disvert out of
iniconst. Moved call to iniconst in gcm before call to dynetat0.

Removed unused argument pvteta of physiq (not used either in LMDZ).

1 module tourpot_m
2
3 IMPLICIT NONE
4
5 contains
6
7 SUBROUTINE tourpot(vcov, ucov, massebxy, vorpot)
8
9 ! From LMDZ4/libf/dyn3d/tourpot.F, version 1.1.1.1 2004/05/19 12:53:06
10
11 ! Author: P. Le Van
12 ! Objet : calcul du tourbillon potentiel
13
14 USE dimens_m, ONLY: iim, jjm, llm
15 USE comgeom, ONLY: fext_2d
16 use filtreg_m, only: filtreg
17
18 REAL, intent(in):: vcov(:, :, :) ! (iim + 1, jjm, llm)
19 REAL, intent(in):: ucov(:, :, :) ! (iim + 1, jjm + 1, llm)
20 REAL, intent(in):: massebxy(:, :, :) ! (iim + 1, jjm, llm) mass of grid cell
21
22 real, intent(out):: vorpot(:, :, :) ! (iim + 1, jjm, llm)
23 ! = (Filtre(d(vcov)/dx - d(ucov)/dy) + fext) / massebxy
24
25 ! Local:
26 REAL rot(iim + 1, jjm, llm)
27 ! relative vorticity multiplied by cell area, in m2 s-1
28
29 INTEGER l, i, j
30
31 !---------------------------------------------------------------
32
33 ! Calcul du rotationnel du vent puis filtrage
34
35 forall (i = 1: iim, j = 1: jjm) rot(i, j, :) &
36 = vcov(i + 1, j, :) - vcov(i, j, :) + ucov(i, j + 1, :) - ucov(i, j, :)
37 rot(iim + 1, :, :) = rot(1, :, :)
38
39 CALL filtreg(rot, jjm, llm, 2, 1, .FALSE.)
40
41 forall (l = 1: llm) vorpot(:iim, :, l) &
42 = (rot(:iim, :, l) + fext_2d(:iim, :)) / massebxy(:iim, :, l)
43 vorpot(iim + 1, :, :)= vorpot(1, :, :)
44
45 END SUBROUTINE tourpot
46
47 end module tourpot_m

  ViewVC Help
Powered by ViewVC 1.1.21