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

Last change on this file since 5248 was 5246, checked in by abarral, 21 hours ago

Convert fixed-form to free-form sources .F -> .{f,F}90
(WIP: some .F remain, will be handled in subsequent commits)

  • 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!
2! $Header$
3!
4SUBROUTINE dudv2 ( teta, pkf, bern, du, dv  )
5
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  !
28  include "dimensions.h"
29  include "paramet.h"
30
31  REAL :: teta( ip1jmp1,llm ),pkf( ip1jmp1,llm ) ,bern( ip1jmp1,llm ), &
32        du( ip1jmp1,llm ),  dv( ip1jm,llm )
33  INTEGER :: l,ij
34  !
35  !
36  DO l = 1,llm
37  !
38  DO  ij  = iip2, ip1jm - 1
39   du(ij,l) = du(ij,l) + 0.5* ( teta( ij,l ) + teta( ij+1,l ) ) * &
40         ( pkf( ij,l ) - pkf(ij+1,l) )  + bern(ij,l) - bern(ij+1,l)
41  END DO
42  !
43  !
44  !    .....  correction  pour du(iip1,j,l),  j=2,jjm   ......
45  !    ...          du(iip1,j,l) = du(1,j,l)                 ...
46  !
47  !DIR$ IVDEP
48  DO ij = iip1+ iip1, ip1jm, iip1
49  du( ij,l ) = du( ij - iim,l )
50  END DO
51  !
52  !
53  DO ij  = 1,ip1jm
54  dv( ij,l) = dv(ij,l) + 0.5 * ( teta(ij,l) + teta( ij+iip1,l ) ) * &
55        ( pkf(ij+iip1,l) - pkf(  ij,l  ) ) &
56        +   bern( ij+iip1,l ) - bern( ij  ,l )
57  END DO
58  !
59  END DO
60  !
61  RETURN
62END SUBROUTINE dudv2
Note: See TracBrowser for help on using the repository browser.