source: LMDZ6/branches/Amaury_dev/libf/dyn3dmem/laplacien_gam_loc.f90 @ 5139

Last change on this file since 5139 was 5136, checked in by abarral, 8 weeks ago

Put comgeom.h, comgeom2.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.7 KB
Line 
1SUBROUTINE laplacien_gam_loc( klevel, cuvsga, cvusga, unsaigam, &
2        unsapolnga, unsapolsga, teta, divgra )
3
4  !  P. Le Van
5  !
6  !   ************************************************************
7  !
8  !  ....   calcul de  (div( grad ))   de   teta  .....
9  !   ************************************************************
10  !    klevel et teta  sont des arguments  d'entree pour le s-prog
11  !  divgra     est  un argument  de sortie pour le s-prog
12  !
13  USE parallel_lmdz
14  USE lmdz_comgeom
15
16  IMPLICIT NONE
17  !
18  INCLUDE "dimensions.h"
19  INCLUDE "paramet.h"
20
21  !
22  !    ............     variables  en arguments    ..........
23  !
24  INTEGER :: klevel
25  REAL :: teta( ijb_u:ije_u,klevel ), divgra( ijb_u:ije_u,klevel )
26  REAL :: cuvsga(ip1jm) , cvusga( ip1jmp1 )
27  REAL :: unsaigam(ip1jmp1)
28  REAL :: unsapolnga, unsapolsga
29  !
30  !    ...........    variables  locales    .................
31  !
32  REAL :: ghy(ijb_v:ije_v,llm), ghx(ijb_u:ije_u,llm)
33  !    ......................................................
34
35  INTEGER :: ijb,ije
36  INTEGER :: l
37  !
38  !
39  !   ...  cvuscugam  = ( cvu/ cu ) ** (- gamdissip )
40  !   ...  cuvscvgam  = ( cuv/ cv ) ** (- gamdissip )  calcules dans inigeom  ..
41  !   ...  unsairegam =  1. /  aire ** (- gamdissip )
42  !
43
44  !  CALL SCOPY ( ip1jmp1 * klevel, teta, 1, divgra, 1 )
45
46  ijb=ij_begin-iip1
47  ije=ij_end+iip1
48  IF (pole_nord) ijb=ij_begin
49  IF (pole_sud ) ije=ij_end
50
51!$OMP DO SCHEDULE(STATIC,OMP_CHUNK)
52  DO l=1,klevel
53    divgra(ijb:ije,l)=teta(ijb:ije,l)
54  ENDDO
55!$OMP END DO NOWAIT
56
57  !
58  CALL   grad_loc ( klevel, divgra, ghx, ghy )
59  !
60  CALL  diverg_gam_loc ( klevel, cuvsga, cvusga,  unsaigam  , &
61        unsapolnga, unsapolsga, ghx , ghy , divgra )
62
63  !
64
65
66END SUBROUTINE laplacien_gam_loc
Note: See TracBrowser for help on using the repository browser.