source: LMDZ5/branches/testing/libf/dyn3dmem/vlz_mod.F90 @ 5394

Last change on this file since 5394 was 2298, checked in by Laurent Fairhead, 10 years ago

Merged trunk changes -r2237:2291 into testing branch

  • 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.3 KB
RevLine 
[1632]1MODULE vlz_mod
2
[2298]3  REAL,POINTER,SAVE :: wq(:,:,:)
[1632]4  REAL,POINTER,SAVE :: dzq(:,:)
5  REAL,POINTER,SAVE :: dzqw(:,:)
6  REAL,POINTER,SAVE :: adzqw(:,:)
[2298]7  ! CRisi: pour les traceurs: 
8  !REAL,POINTER,SAVE :: masseq(:,:,:)
9  REAL,POINTER,SAVE :: Ratio(:,:,:)
[1632]10 
11CONTAINS
12
13  SUBROUTINE vlz_allocate
14  USE bands
[1864]15  USE allocate_field_mod
16  USE parallel_lmdz
[1632]17  USE infotrac
[1864]18  USE dimensions_mod
[1632]19  IMPLICIT NONE
20  TYPE(distrib),POINTER :: d
21   
22    d=>distrib_vanleer
[2298]23    CALL allocate_u(wq,llm+1,nqtot,d)
[1632]24    CALL allocate_u(dzq,llm,d)
25    CALL allocate_u(dzqw,llm,d)
26    CALL allocate_u(adzqw,llm,d)
[2298]27    if (nqdesc_tot.gt.0) then
28    !CALL allocate_u(masseq,llm,nqtot,d)
29    CALL allocate_u(Ratio,llm,nqtot,d)
30    endif !if (nqdesc_tot.gt.0) then
[1632]31
32  END SUBROUTINE vlz_allocate
33 
34  SUBROUTINE vlz_switch_vanleer(dist)
[1864]35  USE allocate_field_mod
[1632]36  USE bands
[1864]37  USE parallel_lmdz
[2298]38  USE infotrac
[1632]39  IMPLICIT NONE
40    TYPE(distrib),INTENT(IN) :: dist
41 
42    CALL switch_u(wq,distrib_vanleer,dist)
43    CALL switch_u(dzq,distrib_vanleer,dist)
44    CALL switch_u(dzqw,distrib_vanleer,dist)
45    CALL switch_u(adzqw,distrib_vanleer,dist)
[2298]46    ! CRisi:
47    if (nqdesc_tot.gt.0) then   
48    !CALL switch_u(masseq,distrib_vanleer,dist)
49    CALL switch_u(Ratio,distrib_vanleer,dist)
50    endif !if (nqdesc_tot.gt.0) then     
[1632]51
52  END SUBROUTINE vlz_switch_vanleer 
53 
54END MODULE vlz_mod 
Note: See TracBrowser for help on using the repository browser.