Last change
on this file since 2933 was
2597,
checked in by Ehouarn Millour, 8 years ago
|
Cleanup in the dynamics: get rid of comconst.h, make it a module comconst_mod.
EM
|
-
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.4 KB
|
Line | |
---|
1 | SUBROUTINE massbarxy_p( masse, massebxy ) |
---|
2 | USE parallel_lmdz |
---|
3 | implicit none |
---|
4 | c ********************************************************************** |
---|
5 | c |
---|
6 | c Calcule les moyennes en x et y de la masse d'air dans chaque maille. |
---|
7 | c ********************************************************************** |
---|
8 | c Auteurs : P. Le Van , Fr. Hourdin . |
---|
9 | c .......... |
---|
10 | c |
---|
11 | c .. masse est un argum. d'entree pour le s-pg ... |
---|
12 | c .. massebxy est un argum. de sortie pour le s-pg ... |
---|
13 | c |
---|
14 | c |
---|
15 | c IMPLICIT NONE |
---|
16 | c |
---|
17 | #include "dimensions.h" |
---|
18 | #include "paramet.h" |
---|
19 | #include "comgeom.h" |
---|
20 | c |
---|
21 | REAL masse( ip1jmp1,llm ), massebxy( ip1jm,llm ) |
---|
22 | c |
---|
23 | INTEGER ij,l,ijb,ije |
---|
24 | |
---|
25 | |
---|
26 | ijb=ij_begin-iip1 |
---|
27 | ije=ij_end |
---|
28 | |
---|
29 | if (pole_nord) ijb=ijb+iip1 |
---|
30 | if (pole_sud) ije=ije-iip1 |
---|
31 | |
---|
32 | c$OMP DO SCHEDULE(STATIC,OMP_CHUNK) |
---|
33 | DO 100 l = 1 , llm |
---|
34 | c |
---|
35 | DO 5 ij = ijb, ije - 1 |
---|
36 | massebxy( ij,l ) = masse( ij ,l ) * alpha2( ij ) + |
---|
37 | + masse( ij+1 ,l ) * alpha3( ij+1 ) + |
---|
38 | + masse( ij+iip1,l ) * alpha1( ij+iip1 ) + |
---|
39 | + masse( ij+iip2,l ) * alpha4( ij+iip2 ) |
---|
40 | 5 CONTINUE |
---|
41 | |
---|
42 | c .... correction pour massebxy( iip1,j ) ........ |
---|
43 | |
---|
44 | CDIR$ IVDEP |
---|
45 | |
---|
46 | DO 7 ij = ijb+iip1-1, ije+iip1-1, iip1 |
---|
47 | massebxy( ij,l ) = massebxy( ij - iim,l ) |
---|
48 | 7 CONTINUE |
---|
49 | |
---|
50 | 100 CONTINUE |
---|
51 | c$OMP END DO NOWAIT |
---|
52 | c |
---|
53 | RETURN |
---|
54 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.