Last change
on this file since 5403 was
5285,
checked in by abarral, 7 weeks ago
|
As discussed internally, remove generic ONLY: ... for new _mod_h 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 comgeom_mod_h |
---|
3 | USE parallel_lmdz |
---|
4 | USE dimensions_mod, ONLY: iim, jjm, llm, ndm |
---|
5 | USE paramet_mod_h |
---|
6 | IMPLICIT NONE |
---|
7 | |
---|
8 | !======================================================================= |
---|
9 | ! |
---|
10 | ! Auteur: P. Le Van |
---|
11 | ! ------- |
---|
12 | ! |
---|
13 | ! Objet: |
---|
14 | ! ------ |
---|
15 | ! |
---|
16 | ! ********************************************************************* |
---|
17 | ! calcul des compos. contravariantes a partir des comp.covariantes |
---|
18 | ! ******************************************************************** |
---|
19 | ! |
---|
20 | !======================================================================= |
---|
21 | |
---|
22 | INTEGER :: klevel |
---|
23 | REAL :: ucov( ijb_u:ije_u,klevel ), vcov( ijb_v:ije_v,klevel ) |
---|
24 | REAL :: ucont( ijb_u:ije_u,klevel ), vcont( ijb_v:ije_v,klevel ) |
---|
25 | INTEGER :: l,ij |
---|
26 | INTEGER :: ijbu,ijbv,ijeu,ijev |
---|
27 | |
---|
28 | |
---|
29 | ijbu=ij_begin-iip1 |
---|
30 | ijbv=ij_begin-iip1 |
---|
31 | ijeu=ij_end+iip1 |
---|
32 | ijev=ij_end+iip1 |
---|
33 | |
---|
34 | if (pole_nord) then |
---|
35 | ijbu=ij_begin+iip1 |
---|
36 | ijbv=ij_begin |
---|
37 | endif |
---|
38 | |
---|
39 | if (pole_sud) then |
---|
40 | ijeu=ij_end-iip1 |
---|
41 | ijev=ij_end-iip1 |
---|
42 | endif |
---|
43 | |
---|
44 | !$OMP DO SCHEDULE(STATIC,OMP_CHUNK) |
---|
45 | DO l = 1,klevel |
---|
46 | |
---|
47 | DO ij = ijb_u,ije_u |
---|
48 | ucont( ij,l ) = ucov( ij,l ) * unscu2( ij ) |
---|
49 | END DO |
---|
50 | |
---|
51 | DO ij = ijb_v,ije_v |
---|
52 | vcont( ij,l ) = vcov( ij,l ) * unscv2( ij ) |
---|
53 | END DO |
---|
54 | |
---|
55 | END DO |
---|
56 | !$OMP END DO NOWAIT |
---|
57 | RETURN |
---|
58 | END SUBROUTINE covcont_loc |
---|
Note: See
TracBrowser
for help on using the repository browser.