source: LMDZ6/trunk/libf/dyn3dmem/caladvtrac_mod.f90 @ 5407

Last change on this file since 5407 was 5285, checked in by abarral, 7 weeks ago

As discussed internally, remove generic ONLY: ... for new _mod_h 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: 3.2 KB
RevLine 
[1632]1MODULE caladvtrac_mod
2
3  REAL,POINTER,SAVE :: q_adv(:,:,:)
4  REAL,POINTER,SAVE :: massem_adv(:,:)
5  REAL,POINTER,SAVE :: wg_adv(:,:)
6  REAL,POINTER,SAVE :: teta_adv(:,:)
7  REAL,POINTER,SAVE :: p_adv(:,:)
8  REAL,POINTER,SAVE :: pk_adv(:,:)
9  REAL,POINTER,SAVE :: pbarug_adv(:,:)
10  REAL,POINTER,SAVE :: pbarvg_adv(:,:)
11  REAL,POINTER,SAVE :: pbaruc(:,:)
12  REAL,POINTER,SAVE :: pbarvc(:,:)
13  REAL,POINTER,SAVE :: pbarug(:,:)
14  REAL,POINTER,SAVE :: pbarvg(:,:)
15  REAL,POINTER,SAVE :: wg(:,:)
16
17  REAL,POINTER,SAVE :: massem(:,:)
[4139]18  !Offline
19  REAL,POINTER,SAVE :: tetac(:,:)
20  REAL,POINTER,SAVE :: massec(:,:)
21  REAL,POINTER,SAVE :: phic(:,:)
22  REAL,POINTER,SAVE :: pbarucc(:,:)
23  REAL,POINTER,SAVE :: pbarvcc(:,:)
24  REAL,POINTER,SAVE :: pbarugg(:,:)
25  REAL,POINTER,SAVE :: pbarvgg(:,:)
26  REAL,POINTER,SAVE :: wgg(:,:)
[1632]27CONTAINS
28
29  SUBROUTINE caladvtrac_allocate
30  USE bands
[1810]31  USE allocate_field_mod
[1823]32  USE parallel_lmdz
[4050]33  USE infotrac, ONLY: nqtot
[1632]34  USE advtrac_mod, ONLY : advtrac_allocate
35  USE groupe_mod
[5271]36  USE dimensions_mod, ONLY: iim, jjm, llm, ndm
[5285]37USE paramet_mod_h
[5271]38IMPLICIT NONE
39
[5272]40
[1632]41  TYPE(distrib),POINTER :: d
42
43    d=>distrib_vanleer
44    CALL allocate_u(q_adv,llm,nqtot,d)
45    CALL allocate_u(massem_adv,llm,d)
46    CALL allocate_u(wg_adv,llm,d)
47    CALL allocate_u(teta_adv,llm,d)
48    CALL allocate_u(p_adv,llmp1,d)
49    CALL allocate_u(pk_adv,llm,d)
50    CALL allocate_u(pbarug_adv,llm,d)
51    CALL allocate_v(pbarvg_adv,llm,d)
52
53    d=>distrib_caldyn
54    CALL allocate_u(massem,llm,d)
55    CALL allocate_u(pbaruc,llm,d)
[3435]56    pbaruc(:,:)=0
[1632]57    CALL allocate_v(pbarvc,llm,d)
[3435]58    pbarvc(:,:)=0
[1632]59    CALL allocate_u(pbarug,llm,d)
60    CALL allocate_v(pbarvg,llm,d)
61    CALL allocate_u(wg,llm,d)
[4139]62    ! Offline
63    CALL allocate_u(tetac,llm,d)
64    CALL allocate_u(phic,llm,d)
65    CALL allocate_u(pbarucc,llm,d)
66    CALL allocate_v(pbarvcc,llm,d)
67    CALL allocate_u(massec,llm,d)
68    CALL allocate_u(pbarugg,llm,d)
69    CALL allocate_v(pbarvgg,llm,d)
70    CALL allocate_u(wgg,llm,d)
[1632]71
72    CALL groupe_allocate
73    CALL advtrac_allocate
74   
75  END SUBROUTINE caladvtrac_allocate
76 
77  SUBROUTINE caladvtrac_switch_caldyn(dist)
[1810]78  USE allocate_field_mod
[1632]79  USE bands
[1823]80  USE parallel_lmdz
[1632]81  USE groupe_mod
82  IMPLICIT NONE
83    TYPE(distrib),INTENT(IN) :: dist
84
85    CALL switch_u(massem,distrib_caldyn,dist)
86    CALL switch_u(pbaruc,distrib_caldyn,dist)
87    CALL switch_v(pbarvc,distrib_caldyn,dist,up=1)
88    CALL switch_u(pbarug,distrib_caldyn,dist)
89    CALL switch_v(pbarvg,distrib_caldyn,dist)
90    CALL switch_u(wg,distrib_caldyn,dist)
91   
92    CALL groupe_switch_caldyn(dist)
93
94  END SUBROUTINE caladvtrac_switch_caldyn
95 
96  SUBROUTINE caladvtrac_switch_vanleer(dist)
[1810]97  USE allocate_field_mod
[1632]98  USE bands
[1823]99  USE parallel_lmdz
[1632]100  USE advtrac_mod, ONLY : advtrac_switch_vanleer
101  IMPLICIT NONE
102    TYPE(distrib),INTENT(IN) :: dist
103 
104    CALL switch_u(q_adv,distrib_vanleer,dist)
105    CALL switch_u(massem_adv,distrib_vanleer,dist)
106    CALL switch_u(wg_adv,distrib_vanleer,dist)
107    CALL switch_u(teta_adv,distrib_vanleer,dist)
108    CALL switch_u(p_adv,distrib_vanleer,dist)
109    CALL switch_u(pk_adv,distrib_vanleer,dist)
110    CALL switch_u(pbarug_adv,distrib_vanleer,dist)
111    CALL switch_v(pbarvg_adv,distrib_vanleer,dist)
112
113    CALL advtrac_switch_vanleer(dist)
114   
115  END SUBROUTINE caladvtrac_switch_vanleer 
116 
117END MODULE caladvtrac_mod 
Note: See TracBrowser for help on using the repository browser.