source: LMDZ6/trunk/libf/dyn3dmem/integrd_mod.f90 @ 5282

Last change on this file since 5282 was 5272, checked in by abarral, 7 weeks ago

Turn paramet.h into a module

  • 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.0 KB
Line 
1MODULE integrd_mod
2
3  REAL,POINTER,SAVE :: p(:,:)
4  REAL,POINTER,SAVE :: deltap(:,:)
5  REAL,POINTER,SAVE :: ps(:)
6
7
8 
9CONTAINS
10
11  SUBROUTINE integrd_allocate
12  USE bands
13  USE allocate_field_mod
14  USE parallel_lmdz
15  USE dimensions_mod, ONLY: iim, jjm, llm, ndm
16  USE paramet_mod_h, ONLY: iip1, iip2, iip3, jjp1, llmp1, llmp2, llmm1, kftd, ip1jm, ip1jmp1, &
17          ip1jmi1, ijp1llm, ijmllm, mvar, jcfil, jcfllm
18  USE advect_new_mod,ONLY : advect_new_allocate
19  IMPLICIT NONE
20  TYPE(distrib),POINTER :: d
21
22
23    d=>distrib_caldyn
24    CALL allocate_u(p,llmp1,d)
25    CALL allocate_u(deltap,llm,d)
26    CALL allocate_u(ps,d)
27    ps(:)=0
28
29   
30  END SUBROUTINE integrd_allocate
31 
32  SUBROUTINE integrd_switch_caldyn(dist)
33  USE allocate_field_mod
34  USE bands
35  USE parallel_lmdz
36  IMPLICIT NONE
37    TYPE(distrib),INTENT(IN) :: dist
38
39    CALL switch_u(p,distrib_caldyn,dist)
40    CALL switch_u(deltap,distrib_caldyn,dist)
41    CALL switch_u(ps,distrib_caldyn,dist)
42
43   
44   
45  END SUBROUTINE integrd_switch_caldyn
46 
47
48 
49END MODULE integrd_mod 
Note: See TracBrowser for help on using the repository browser.