source: LMDZ6/branches/Amaury_dev/libf/dyn3d/dudv2.F90 @ 5159

Last change on this file since 5159 was 5159, checked in by abarral, 7 weeks ago

Put dimensions.h and paramet.h into modules

  • Property copyright set to
    Name of program: LMDZ
    Creation date: 1984
    Version: LMDZ5
    License: CeCILL version 2
    Holder: Laboratoire de m\'et\'eorologie dynamique, CNRS, UMR 8539
    See the license file in the root directory
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 KB
Line 
1! $Header$
2
3SUBROUTINE dudv2(teta, pkf, bern, du, dv)
4
5  USE lmdz_dimensions, ONLY: iim, jjm, llm, ndm
6  USE lmdz_paramet
7  IMPLICIT NONE
8
9  !=======================================================================
10
11  !   Auteur:  P. Le Van
12  !   -------
13
14  !   Objet:
15  !   ------
16
17  !   *****************************************************************
18  !   ..... calcul du terme de pression (gradient de p/densite )   et
19  !      du terme de ( -gradient de la fonction de Bernouilli ) ...
20  !   *****************************************************************
21  !      Ces termes sont ajoutes a  d(ucov)/dt et a d(vcov)/dt  ..
22
23
24  !    teta , pkf, bern  sont des arguments d'entree  pour le s-pg  ....
25  !    du et dv          sont des arguments de sortie pour le s-pg  ....
26
27  !=======================================================================
28  !
29
30
31
32  REAL :: teta(ip1jmp1, llm), pkf(ip1jmp1, llm), bern(ip1jmp1, llm), &
33          du(ip1jmp1, llm), dv(ip1jm, llm)
34  INTEGER :: l, ij
35
36
37  DO l = 1, llm
38
39    DO ij = iip2, ip1jm - 1
40      du(ij, l) = du(ij, l) + 0.5 * (teta(ij, l) + teta(ij + 1, l)) * &
41              (pkf(ij, l) - pkf(ij + 1, l)) + bern(ij, l) - bern(ij + 1, l)
42    END DO
43
44
45    !    .....  correction  pour du(iip1,j,l),  j=2,jjm   ......
46    !    ...          du(iip1,j,l) = du(1,j,l)                 ...
47
48    !DIR$ IVDEP
49    DO ij = iip1 + iip1, ip1jm, iip1
50      du(ij, l) = du(ij - iim, l)
51    END DO
52
53
54    DO ij = 1, ip1jm
55      dv(ij, l) = dv(ij, l) + 0.5 * (teta(ij, l) + teta(ij + iip1, l)) * &
56              (pkf(ij + iip1, l) - pkf(ij, l)) &
57              + bern(ij + iip1, l) - bern(ij, l)
58    END DO
59
60  END DO
61  !
62
63END SUBROUTINE dudv2
Note: See TracBrowser for help on using the repository browser.