source: LMDZ6/branches/Amaury_dev/libf/dyn3dmem/laplacien_loc.f90 @ 5153

Last change on this file since 5153 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.5 KB
Line 
1SUBROUTINE laplacien_loc( klevel, teta, divgra )
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
12  USE lmdz_filtreg_p
13  USE lmdz_comgeom
14
15  IMPLICIT NONE
16  !
17  INCLUDE "dimensions.h"
18  INCLUDE "paramet.h"
19
20  !
21  !    .........      variables  en arguments   ..............
22  !
23  INTEGER :: klevel
24  REAL :: teta( ijb_u:ije_u,klevel ), divgra( ijb_u:ije_u,klevel )
25  INTEGER :: l
26  !
27  !    ............     variables  locales      ..............
28  !
29  REAL :: ghy(ijb_v:ije_v,llm), ghx(ijb_u:ije_u,llm)
30  !    .......................................................
31
32
33  INTEGER :: ijb,ije,jjb,jje
34  !
35  !  CALL SCOPY ( ip1jmp1 * klevel, teta, 1, divgra, 1 )
36
37  ijb=ij_begin-iip1
38  ije=ij_end+iip1
39  IF (pole_nord) ijb=ij_begin
40  IF (pole_sud ) ije=ij_end
41
42!$OMP DO SCHEDULE(STATIC,OMP_CHUNK)
43  DO l=1,klevel
44    divgra(ijb:ije,l)=teta(ijb:ije,l)
45  ENDDO
46!$OMP END DO NOWAIT
47
48  jjb=jj_begin-1
49  jje=jj_end+1
50  IF (pole_nord) jjb=jj_begin
51  IF (pole_sud ) jje=jj_end
52
53  CALL filtreg_p( divgra,jjb_u,jje_u,jjb,jje,jjp1, &
54        klevel,  2, 1, .TRUE., 1 )
55  CALL   grad_loc ( klevel,divgra,   ghx , ghy              )
56  CALL  divergf_loc ( klevel, ghx , ghy  , divgra           )
57
58
59END SUBROUTINE laplacien_loc
Note: See TracBrowser for help on using the repository browser.