source: LMDZ5/branches/LMDZ5-DOFOCO/libf/dyn3dmem/advect_new_mod.F90 @ 2136

Last change on this file since 2136 was 1632, checked in by Laurent Fairhead, 12 years ago

Import initial du répertoire dyn3dmem

Attention! ceci n'est qu'une version préliminaire du code "basse mémoire":
le code contenu dans ce répertoire est basé sur la r1320 et a donc besoin
d'être mis à jour par rapport à la dynamique parallèle d'aujourd'hui.
Ce code est toutefois mis à disposition pour circonvenir à des problèmes
de mémoire que certaines configurations du modèle pourraient rencontrer.
Dans l'état, il compile et tourne sur vargas et au CCRT


Initial import of dyn3dmem

Warning! this is just a preliminary version of the memory light code:
it is based on r1320 of the code and thus needs to be updated before
it can replace the present dyn3dpar code. It is nevertheless put at your
disposal to circumvent some memory problems some LMDZ configurations may
encounter. In its present state, it will compile and run on vargas and CCRT

File size: 1.3 KB
Line 
1MODULE advect_new_mod
2
3  REAL,POINTER,SAVE :: dv1(:,:)
4  REAL,POINTER,SAVE :: du1(:,:)
5  REAL,POINTER,SAVE :: dteta1(:,:)
6  REAL,POINTER,SAVE :: dv2(:,:)
7  REAL,POINTER,SAVE :: du2(:,:)
8  REAL,POINTER,SAVE :: dteta2(:,:)
9  REAL,POINTER,SAVE :: uav(:,:)
10  REAL,POINTER,SAVE :: vav(:,:)
11
12 
13CONTAINS
14
15  SUBROUTINE advect_new_allocate
16  USE bands
17  USE allocate_field
18  USE parallel
19  USE dimensions
20  IMPLICIT NONE
21  TYPE(distrib),POINTER :: d
22
23
24    d=>distrib_caldyn
25    CALL allocate_v(dv1,llm,d)
26    CALL allocate_u(du1,llm,d)
27    CALL allocate_u(dteta1,llm,d)
28    CALL allocate_v(dv2,llm,d)
29    CALL allocate_u(du2,llm,d)
30    CALL allocate_u(dteta2,llm,d)
31    CALL allocate_u(uav,llm,d)
32    CALL allocate_v(vav,llm,d)
33 
34   
35  END SUBROUTINE advect_new_allocate
36 
37  SUBROUTINE advect_new_switch_caldyn(dist)
38  USE allocate_field
39  USE bands
40  USE parallel
41  IMPLICIT NONE
42    TYPE(distrib),INTENT(IN) :: dist
43
44    CALL switch_v(dv1,distrib_caldyn,dist)
45    CALL switch_u(du1,distrib_caldyn,dist)
46    CALL switch_u(dteta1,distrib_caldyn,dist)
47    CALL switch_v(dv2,distrib_caldyn,dist)
48    CALL switch_u(du2,distrib_caldyn,dist)
49    CALL switch_u(dteta2,distrib_caldyn,dist)
50    CALL switch_u(uav,distrib_caldyn,dist)
51    CALL switch_v(vav,distrib_caldyn,dist)
52
53  END SUBROUTINE advect_new_switch_caldyn
54 
55END MODULE advect_new_mod 
Note: See TracBrowser for help on using the repository browser.