source: LMDZ6/branches/Amaury_dev/libf/dyn3dmem/vlz_mod.F90 @ 5409

Last change on this file since 5409 was 5182, checked in by abarral, 3 months ago

(WIP) Replace REPROBUS CPP KEY by logical
properly name 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.1 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 :: Ratio(:,:,:)
9 
10CONTAINS
11
12  SUBROUTINE vlz_allocate
13  USE bands
14  USE allocate_field_mod
15  USE parallel_lmdz
16  USE lmdz_infotrac
17  USE lmdz_dimensions
18  USE lmdz_paramet
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(ANY(tracers(:)%nqDescen > 0)) CALL allocate_u(Ratio,llm,nqtot,d)
28
29  END SUBROUTINE vlz_allocate
30 
31  SUBROUTINE vlz_switch_vanleer(dist)
32  USE allocate_field_mod
33  USE bands
34  USE parallel_lmdz
35  USE lmdz_infotrac
36  IMPLICIT NONE
37    TYPE(distrib),INTENT(IN) :: dist
38 
39    CALL switch_u(wq,distrib_vanleer,dist)
40    CALL switch_u(dzq,distrib_vanleer,dist)
41    CALL switch_u(dzqw,distrib_vanleer,dist)
42    CALL switch_u(adzqw,distrib_vanleer,dist)
43    IF(ANY(tracers(:)%nqDescen > 0)) CALL switch_u(Ratio,distrib_vanleer,dist)
44
45  END SUBROUTINE vlz_switch_vanleer 
46 
47END MODULE vlz_mod 
Note: See TracBrowser for help on using the repository browser.