1 | ! |
---|
2 | ! $Header$ |
---|
3 | ! |
---|
4 | SUBROUTINE 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 |
---|
60 | END SUBROUTINE dudv2 |
---|