Last change
on this file since 5185 was
5159,
checked in by abarral, 4 months ago
|
Put dimensions.h and paramet.h into modules
|
-
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
|
File size:
1.3 KB
|
Line | |
---|
1 | SUBROUTINE covcont_loc(klevel,ucov, vcov, ucont, vcont ) |
---|
2 | USE parallel_lmdz |
---|
3 | USE lmdz_comgeom |
---|
4 | |
---|
5 | USE lmdz_dimensions, ONLY: iim, jjm, llm, ndm |
---|
6 | USE lmdz_paramet |
---|
7 | IMPLICIT NONE |
---|
8 | |
---|
9 | !======================================================================= |
---|
10 | |
---|
11 | ! Auteur: P. Le Van |
---|
12 | ! ------- |
---|
13 | |
---|
14 | ! Objet: |
---|
15 | ! ------ |
---|
16 | |
---|
17 | ! ********************************************************************* |
---|
18 | ! calcul des compos. contravariantes a partir des comp.covariantes |
---|
19 | ! ******************************************************************** |
---|
20 | |
---|
21 | !======================================================================= |
---|
22 | |
---|
23 | |
---|
24 | |
---|
25 | |
---|
26 | INTEGER :: klevel |
---|
27 | REAL :: ucov( ijb_u:ije_u,klevel ), vcov( ijb_v:ije_v,klevel ) |
---|
28 | REAL :: ucont( ijb_u:ije_u,klevel ), vcont( ijb_v:ije_v,klevel ) |
---|
29 | INTEGER :: l,ij |
---|
30 | INTEGER :: ijbu,ijbv,ijeu,ijev |
---|
31 | |
---|
32 | |
---|
33 | ijbu=ij_begin-iip1 |
---|
34 | ijbv=ij_begin-iip1 |
---|
35 | ijeu=ij_end+iip1 |
---|
36 | ijev=ij_end+iip1 |
---|
37 | |
---|
38 | IF (pole_nord) THEN |
---|
39 | ijbu=ij_begin+iip1 |
---|
40 | ijbv=ij_begin |
---|
41 | ENDIF |
---|
42 | |
---|
43 | IF (pole_sud) THEN |
---|
44 | ijeu=ij_end-iip1 |
---|
45 | ijev=ij_end-iip1 |
---|
46 | ENDIF |
---|
47 | |
---|
48 | !$OMP DO SCHEDULE(STATIC,OMP_CHUNK) |
---|
49 | DO l = 1,klevel |
---|
50 | |
---|
51 | DO ij = ijb_u,ije_u |
---|
52 | ucont( ij,l ) = ucov( ij,l ) * unscu2( ij ) |
---|
53 | END DO |
---|
54 | |
---|
55 | DO ij = ijb_v,ije_v |
---|
56 | vcont( ij,l ) = vcov( ij,l ) * unscv2( ij ) |
---|
57 | END DO |
---|
58 | |
---|
59 | END DO |
---|
60 | !$OMP END DO NOWAIT |
---|
61 | |
---|
62 | END SUBROUTINE covcont_loc |
---|
Note: See
TracBrowser
for help on using the repository browser.