source: LMDZ5/trunk/libf/dyn3d/dudv2.F @ 1907

Last change on this file since 1907 was 1907, checked in by lguez, 10 years ago

Added a copyright property to every file of the distribution, except
for the fcm files (which have their own copyright). Use svn propget on
a file to see the copyright. For instance:

$ svn propget copyright libf/phylmd/physiq.F90
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

Also added the files defining the CeCILL version 2 license, in French
and English, at the top of the LMDZ tree.

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