| [5105] | 1 | SUBROUTINE pression_loc( ngrid, ap, bp, ps, p ) |
|---|
| 2 | USE parallel_lmdz, ONLY: ij_begin, ij_end, ijb_u, ije_u, & |
|---|
| 3 | pole_nord, pole_sud, omp_chunk |
|---|
| 4 | ! |
|---|
| [1632] | 5 | |
|---|
| [5105] | 6 | ! Auteurs : P. Le Van , Fr.Hourdin . |
|---|
| [1632] | 7 | |
|---|
| [5105] | 8 | ! ************************************************************************ |
|---|
| 9 | ! Calcule la pression p(l) aux differents niveaux l = 1 ( niveau du |
|---|
| 10 | ! sol) a l = llm +1 ,ces niveaux correspondant aux interfaces des (llm) |
|---|
| 11 | ! couches , avec p(ij,llm +1) = 0. et p(ij,1) = ps(ij) . |
|---|
| 12 | ! ************************************************************************ |
|---|
| 13 | ! |
|---|
| 14 | IMPLICIT NONE |
|---|
| 15 | ! |
|---|
| 16 | INCLUDE "dimensions.h" |
|---|
| 17 | INCLUDE "paramet.h" |
|---|
| 18 | ! |
|---|
| 19 | INTEGER,INTENT(IN) :: ngrid ! not used |
|---|
| 20 | INTEGER :: l,ij |
|---|
| [1632] | 21 | |
|---|
| [5105] | 22 | REAL,INTENT(IN) :: ap( llmp1 ), bp( llmp1 ), ps( ijb_u:ije_u ) |
|---|
| 23 | REAL,INTENT(OUT) :: p( ijb_u:ije_u,llmp1 ) |
|---|
| [1632] | 24 | |
|---|
| [5105] | 25 | INTEGER :: ijb,ije |
|---|
| 26 | |
|---|
| 27 | |
|---|
| 28 | ijb=ij_begin-iip1 |
|---|
| 29 | ije=ij_end+2*iip1 |
|---|
| 30 | |
|---|
| [5117] | 31 | IF (pole_nord) ijb=ij_begin |
|---|
| 32 | IF (pole_sud) ije=ij_end |
|---|
| [5105] | 33 | |
|---|
| 34 | !$OMP DO SCHEDULE(STATIC,OMP_CHUNK) |
|---|
| 35 | DO l = 1, llmp1 |
|---|
| 36 | DO ij = ijb, ije |
|---|
| 37 | p(ij,l) = ap(l) + bp(l) * ps(ij) |
|---|
| 38 | ENDDO |
|---|
| 39 | ENDDO |
|---|
| 40 | !$OMP END DO NOWAIT |
|---|
| 41 | |
|---|
| 42 | END SUBROUTINE pression_loc |
|---|