[5106] | 1 | SUBROUTINE laplacien_loc( klevel, teta, divgra ) |
---|
[5105] | 2 | ! |
---|
| 3 | ! P. Le Van |
---|
| 4 | ! |
---|
| 5 | ! ************************************************************ |
---|
| 6 | ! .... calcul de (div( grad )) de teta ..... |
---|
| 7 | ! ************************************************************ |
---|
| 8 | ! klevel et teta sont des arguments d'entree pour le s-prog |
---|
| 9 | ! divgra est un argument de sortie pour le s-prog |
---|
| 10 | ! |
---|
| 11 | USE parallel_lmdz |
---|
[5106] | 12 | USE lmdz_filtreg_p |
---|
[5105] | 13 | IMPLICIT NONE |
---|
| 14 | ! |
---|
| 15 | INCLUDE "dimensions.h" |
---|
| 16 | INCLUDE "paramet.h" |
---|
| 17 | INCLUDE "comgeom.h" |
---|
[1632] | 18 | |
---|
[5105] | 19 | ! |
---|
| 20 | ! ......... variables en arguments .............. |
---|
| 21 | ! |
---|
| 22 | INTEGER :: klevel |
---|
| 23 | REAL :: teta( ijb_u:ije_u,klevel ), divgra( ijb_u:ije_u,klevel ) |
---|
| 24 | INTEGER :: l |
---|
| 25 | ! |
---|
| 26 | ! ............ variables locales .............. |
---|
| 27 | ! |
---|
| 28 | REAL :: ghy(ijb_v:ije_v,llm), ghx(ijb_u:ije_u,llm) |
---|
| 29 | ! ....................................................... |
---|
[1632] | 30 | |
---|
| 31 | |
---|
[5105] | 32 | INTEGER :: ijb,ije,jjb,jje |
---|
| 33 | ! |
---|
| 34 | ! CALL SCOPY ( ip1jmp1 * klevel, teta, 1, divgra, 1 ) |
---|
[1632] | 35 | |
---|
[5105] | 36 | ijb=ij_begin-iip1 |
---|
| 37 | ije=ij_end+iip1 |
---|
[5117] | 38 | IF (pole_nord) ijb=ij_begin |
---|
| 39 | IF (pole_sud ) ije=ij_end |
---|
[1632] | 40 | |
---|
[5105] | 41 | !$OMP DO SCHEDULE(STATIC,OMP_CHUNK) |
---|
| 42 | DO l=1,klevel |
---|
| 43 | divgra(ijb:ije,l)=teta(ijb:ije,l) |
---|
| 44 | ENDDO |
---|
| 45 | !$OMP END DO NOWAIT |
---|
| 46 | |
---|
| 47 | jjb=jj_begin-1 |
---|
| 48 | jje=jj_end+1 |
---|
[5117] | 49 | IF (pole_nord) jjb=jj_begin |
---|
| 50 | IF (pole_sud ) jje=jj_end |
---|
[5105] | 51 | |
---|
| 52 | CALL filtreg_p( divgra,jjb_u,jje_u,jjb,jje,jjp1, & |
---|
| 53 | klevel, 2, 1, .TRUE., 1 ) |
---|
| 54 | CALL grad_loc ( klevel,divgra, ghx , ghy ) |
---|
| 55 | CALL divergf_loc ( klevel, ghx , ghy , divgra ) |
---|
| 56 | |
---|
| 57 | |
---|
| 58 | END SUBROUTINE laplacien_loc |
---|