source: LMDZ6/trunk/libf/dyn3d/dudv2.f90 @ 5271

Last change on this file since 5271 was 5271, checked in by abarral, 30 hours ago

Move dimensions.h into a module
Nb: doesn't compile yet

  • 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.7 KB
Line 
1!
2! $Header$
3!
4SUBROUTINE dudv2 ( teta, pkf, bern, du, dv  )
5  USE dimensions_mod, ONLY: iim, jjm, llm, ndm
6  IMPLICIT NONE
7  !
8  !=======================================================================
9  !
10  !   Auteur:  P. Le Van
11  !   -------
12  !
13  !   Objet:
14  !   ------
15  !
16  !   *****************************************************************
17  !   ..... calcul du terme de pression (gradient de p/densite )   et
18  !      du terme de ( -gradient de la fonction de Bernouilli ) ...
19  !   *****************************************************************
20  !      Ces termes sont ajoutes a  d(ucov)/dt et a d(vcov)/dt  ..
21  !
22  !
23  !    teta , pkf, bern  sont des arguments d'entree  pour le s-pg  ....
24  !    du et dv          sont des arguments de sortie pour le s-pg  ....
25  !
26  !=======================================================================
27  include "paramet.h"
28
29  REAL :: teta( ip1jmp1,llm ),pkf( ip1jmp1,llm ) ,bern( ip1jmp1,llm ), &
30        du( ip1jmp1,llm ),  dv( ip1jm,llm )
31  INTEGER :: l,ij
32  !
33  !
34  DO l = 1,llm
35  !
36  DO  ij  = iip2, ip1jm - 1
37   du(ij,l) = du(ij,l) + 0.5* ( teta( ij,l ) + teta( ij+1,l ) ) * &
38         ( pkf( ij,l ) - pkf(ij+1,l) )  + bern(ij,l) - bern(ij+1,l)
39  END DO
40  !
41  !
42  !    .....  correction  pour du(iip1,j,l),  j=2,jjm   ......
43  !    ...          du(iip1,j,l) = du(1,j,l)                 ...
44  !
45  !DIR$ IVDEP
46  DO ij = iip1+ iip1, ip1jm, iip1
47  du( ij,l ) = du( ij - iim,l )
48  END DO
49  !
50  !
51  DO ij  = 1,ip1jm
52  dv( ij,l) = dv(ij,l) + 0.5 * ( teta(ij,l) + teta( ij+iip1,l ) ) * &
53        ( pkf(ij+iip1,l) - pkf(  ij,l  ) ) &
54        +   bern( ij+iip1,l ) - bern( ij  ,l )
55  END DO
56  !
57  END DO
58  !
59  RETURN
60END SUBROUTINE dudv2
Note: See TracBrowser for help on using the repository browser.