Last change
on this file since 1632 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:
780 bytes
|
Line | |
---|
1 | MODULE gradiv2_mod |
---|
2 | |
---|
3 | REAL,POINTER,SAVE :: gdx( :,: ) |
---|
4 | REAL,POINTER,SAVE :: gdy( :,: ) |
---|
5 | REAL,POINTER,SAVE :: div( :,: ) |
---|
6 | |
---|
7 | CONTAINS |
---|
8 | |
---|
9 | SUBROUTINE gradiv2_allocate |
---|
10 | USE bands |
---|
11 | USE allocate_field |
---|
12 | USE parallel |
---|
13 | USE dimensions |
---|
14 | IMPLICIT NONE |
---|
15 | TYPE(distrib),POINTER :: d |
---|
16 | d=>distrib_dissip |
---|
17 | |
---|
18 | CALL allocate_u(gdx,llm,d) |
---|
19 | CALL allocate_v(gdy,llm,d) |
---|
20 | CALL allocate_u(div,llm,d) |
---|
21 | |
---|
22 | |
---|
23 | END SUBROUTINE gradiv2_allocate |
---|
24 | |
---|
25 | SUBROUTINE gradiv2_switch_dissip(dist) |
---|
26 | USE allocate_field |
---|
27 | USE bands |
---|
28 | USE parallel |
---|
29 | IMPLICIT NONE |
---|
30 | TYPE(distrib),INTENT(IN) :: dist |
---|
31 | |
---|
32 | CALL switch_u(gdx,distrib_dissip,dist) |
---|
33 | CALL switch_v(gdy,distrib_dissip,dist) |
---|
34 | CALL switch_u(div,distrib_dissip,dist) |
---|
35 | |
---|
36 | |
---|
37 | END SUBROUTINE gradiv2_switch_dissip |
---|
38 | |
---|
39 | END MODULE gradiv2_mod |
---|
Note: See
TracBrowser
for help on using the repository browser.