Last change
on this file since 5298 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.6 KB
|
Line | |
---|
1 | ! |
---|
2 | ! $Header$ |
---|
3 | ! |
---|
4 | SUBROUTINE gr_v_scal_loc(nx,x_v,x_scal) |
---|
5 | !%W% %G% |
---|
6 | !======================================================================= |
---|
7 | ! |
---|
8 | ! Author: Frederic Hourdin original: 11/11/92 |
---|
9 | ! ------- |
---|
10 | ! |
---|
11 | ! Subject: |
---|
12 | ! ------ |
---|
13 | ! |
---|
14 | ! Method: |
---|
15 | ! -------- |
---|
16 | ! |
---|
17 | ! Interface: |
---|
18 | ! ---------- |
---|
19 | ! |
---|
20 | ! Input: |
---|
21 | ! ------ |
---|
22 | ! |
---|
23 | ! Output: |
---|
24 | ! ------- |
---|
25 | ! |
---|
26 | !======================================================================= |
---|
27 | USE comgeom_mod_h |
---|
28 | USE parallel_lmdz |
---|
29 | USE dimensions_mod, ONLY: iim, jjm, llm, ndm |
---|
30 | USE paramet_mod_h |
---|
31 | IMPLICIT NONE |
---|
32 | !----------------------------------------------------------------------- |
---|
33 | ! Declararations: |
---|
34 | ! --------------- |
---|
35 | |
---|
36 | |
---|
37 | |
---|
38 | |
---|
39 | ! Arguments: |
---|
40 | ! ---------- |
---|
41 | |
---|
42 | INTEGER :: nx |
---|
43 | REAL :: x_v(ijb_v:ije_v,nx),x_scal(ijb_v:ije_v,nx) |
---|
44 | |
---|
45 | ! Local: |
---|
46 | ! ------ |
---|
47 | |
---|
48 | INTEGER :: l,ij |
---|
49 | INTEGER :: ijb,ije |
---|
50 | !----------------------------------------------------------------------- |
---|
51 | ijb=ij_begin |
---|
52 | ije=ij_end |
---|
53 | if (pole_nord) ijb=ij_begin+iip1 |
---|
54 | if (pole_sud) ije=ij_end-iip1 |
---|
55 | |
---|
56 | !$OMP DO SCHEDULE(STATIC,OMP_CHUNK) |
---|
57 | DO l=1,nx |
---|
58 | DO ij=ijb,ije |
---|
59 | x_scal(ij,l)= & |
---|
60 | (airev(ij-iip1)*x_v(ij-iip1,l)+airev(ij)*x_v(ij,l)) & |
---|
61 | /(airev(ij-iip1)+airev(ij)) |
---|
62 | ENDDO |
---|
63 | ENDDO |
---|
64 | !$OMP ENDDO NOWAIT |
---|
65 | |
---|
66 | if (pole_nord) then |
---|
67 | !$OMP DO SCHEDULE(STATIC,OMP_CHUNK) |
---|
68 | DO l=1,nx |
---|
69 | DO ij=1,iip1 |
---|
70 | x_scal(ij,l)=0. |
---|
71 | ENDDO |
---|
72 | ENDDO |
---|
73 | !$OMP ENDDO NOWAIT |
---|
74 | endif |
---|
75 | |
---|
76 | if (pole_sud) then |
---|
77 | !$OMP DO SCHEDULE(STATIC,OMP_CHUNK) |
---|
78 | DO l=1,nx |
---|
79 | DO ij=ip1jm+1,ip1jmp1 |
---|
80 | x_scal(ij,l)=0. |
---|
81 | ENDDO |
---|
82 | ENDDO |
---|
83 | !$OMP ENDDO NOWAIT |
---|
84 | endif |
---|
85 | |
---|
86 | RETURN |
---|
87 | END SUBROUTINE gr_v_scal_loc |
---|
Note: See
TracBrowser
for help on using the repository browser.