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

Last change on this file was 5159, checked in by abarral, 7 weeks ago

Put dimensions.h and paramet.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
16USE lmdz_dimensions, ONLY: iim, jjm, llm, ndm
17  USE lmdz_paramet
18  IMPLICIT NONE
19  !
20
21
22
23
24  !    ............     variables  en arguments    ..........
25
26  INTEGER :: klevel
27  REAL :: teta( ijb_u:ije_u,klevel ), divgra( ijb_u:ije_u,klevel )
28  REAL :: cuvsga(ip1jm) , cvusga( ip1jmp1 )
29  REAL :: unsaigam(ip1jmp1)
30  REAL :: unsapolnga, unsapolsga
31
32  !    ...........    variables  locales    .................
33
34  REAL :: ghy(ijb_v:ije_v,llm), ghx(ijb_u:ije_u,llm)
35  !    ......................................................
36
37  INTEGER :: ijb,ije
38  INTEGER :: l
39
40
41  !   ...  cvuscugam  = ( cvu/ cu ) ** (- gamdissip )
42  !   ...  cuvscvgam  = ( cuv/ cv ) ** (- gamdissip )  calcules dans inigeom  ..
43  !   ...  unsairegam =  1. /  aire ** (- gamdissip )
44  !
45
46  !  CALL SCOPY ( ip1jmp1 * klevel, teta, 1, divgra, 1 )
47
48  ijb=ij_begin-iip1
49  ije=ij_end+iip1
50  IF (pole_nord) ijb=ij_begin
51  IF (pole_sud ) ije=ij_end
52
53!$OMP DO SCHEDULE(STATIC,OMP_CHUNK)
54  DO l=1,klevel
55    divgra(ijb:ije,l)=teta(ijb:ije,l)
56  ENDDO
57!$OMP END DO NOWAIT
58
59
60  CALL   grad_loc ( klevel, divgra, ghx, ghy )
61
62  CALL  diverg_gam_loc ( klevel, cuvsga, cvusga,  unsaigam  , &
63        unsapolnga, unsapolsga, ghx , ghy , divgra )
64
65  !
66
67
68END SUBROUTINE laplacien_gam_loc
Note: See TracBrowser for help on using the repository browser.