source: LMDZ5/branches/AI-cosp/libf/dyn3dmem/vlz_mod.F90 @ 5444

Last change on this file since 5444 was 2281, checked in by crisi, 10 years ago

Camille Risi: corrections of bugs for the isotopic part

  • 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
Line 
1MODULE vlz_mod
2
3  REAL,POINTER,SAVE :: wq(:,:,:)
4  REAL,POINTER,SAVE :: dzq(:,:)
5  REAL,POINTER,SAVE :: dzqw(:,:)
6  REAL,POINTER,SAVE :: adzqw(:,:)
7  ! CRisi: pour les traceurs: 
8  !REAL,POINTER,SAVE :: masseq(:,:,:)
9  REAL,POINTER,SAVE :: Ratio(:,:,:)
10 
11CONTAINS
12
13  SUBROUTINE vlz_allocate
14  USE bands
15  USE allocate_field_mod
16  USE parallel_lmdz
17  USE infotrac
18  USE dimensions_mod
19  IMPLICIT NONE
20  TYPE(distrib),POINTER :: d
21   
22    d=>distrib_vanleer
23    CALL allocate_u(wq,llm+1,nqtot,d)
24    CALL allocate_u(dzq,llm,d)
25    CALL allocate_u(dzqw,llm,d)
26    CALL allocate_u(adzqw,llm,d)
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
31
32  END SUBROUTINE vlz_allocate
33 
34  SUBROUTINE vlz_switch_vanleer(dist)
35  USE allocate_field_mod
36  USE bands
37  USE parallel_lmdz
38  USE infotrac
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)
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     
51
52  END SUBROUTINE vlz_switch_vanleer 
53 
54END MODULE vlz_mod 
Note: See TracBrowser for help on using the repository browser.