source: LMDZ6/branches/Amaury_dev/libf/dyn3dmem/gradiv2_mod.F90 @ 5209

Last change on this file since 5209 was 5159, checked in by abarral, 3 months 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: 822 bytes
Line 
1MODULE gradiv2_mod
2
3  REAL,POINTER,SAVE ::  gdx( :,: )
4  REAL,POINTER,SAVE ::  gdy( :,: )
5  REAL,POINTER,SAVE ::  div( :,: )
6 
7CONTAINS
8
9  SUBROUTINE gradiv2_allocate
10  USE bands
11  USE allocate_field_mod
12  USE parallel_lmdz
13  USE lmdz_dimensions
14  USE lmdz_paramet
15  IMPLICIT NONE
16    TYPE(distrib),POINTER :: d
17    d=>distrib_dissip
18
19    CALL allocate_u(gdx,llm,d)
20    CALL allocate_v(gdy,llm,d)
21    CALL allocate_u(div,llm,d)
22
23   
24  END SUBROUTINE gradiv2_allocate
25 
26  SUBROUTINE gradiv2_switch_dissip(dist)
27  USE allocate_field_mod
28  USE bands
29  USE parallel_lmdz
30  IMPLICIT NONE
31    TYPE(distrib),INTENT(IN) :: dist
32
33    CALL switch_u(gdx,distrib_dissip,dist)
34    CALL switch_v(gdy,distrib_dissip,dist)
35    CALL switch_u(div,distrib_dissip,dist)
36
37
38  END SUBROUTINE gradiv2_switch_dissip
39 
40END MODULE gradiv2_mod 
Note: See TracBrowser for help on using the repository browser.