source: LMDZ4/trunk/libf/phylmd/phys_local_var_mod.F90 @ 1040

Last change on this file since 1040 was 1001, checked in by Laurent Fairhead, 16 years ago
  • Modifs sur le parallelisme: masquage dans la physique
  • Inclusion strato
  • mise en coherence etat0
  • le mode offline fonctionne maintenant en parallele,
  • les fichiers de la dynamiques sont correctement sortis et peuvent etre reconstruit avec rebuild
  • la version parallele de la dynamique peut s'executer sans MPI (sur 1 proc)
  • L'OPENMP fonctionne maintenant sans la parallelisation MPI.

YM
LF

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 5.1 KB
Line 
1      MODULE phys_local_var_mod
2! Variables locales pour effectuer les appels en serie
3!======================================================================
4!
5!
6!======================================================================
7! Declaration des variables
8
9      REAL, SAVE, ALLOCATABLE :: t_seri(:,:), q_seri(:,:)
10      !$OMP THREADPRIVATE(t_seri, q_seri)
11      REAL, SAVE, ALLOCATABLE :: ql_seri(:,:),qs_seri(:,:)
12      !$OMP THREADPRIVATE(ql_seri,qs_seri)
13      REAL, SAVE, ALLOCATABLE :: u_seri(:,:), v_seri(:,:)
14      !$OMP THREADPRIVATE(u_seri, v_seri)
15
16      REAL, SAVE, ALLOCATABLE :: tr_seri(:,:,:)
17      !$OMP THREADPRIVATE(tr_seri)
18      REAL, SAVE, ALLOCATABLE :: d_t_dyn(:,:), d_q_dyn(:,:)
19      !$OMP THREADPRIVATE(d_t_dyn, d_q_dyn)
20      REAL, SAVE, ALLOCATABLE :: d_t_con(:,:),d_q_con(:,:)
21      !$OMP THREADPRIVATE(d_t_con,d_q_con)
22      REAL, SAVE, ALLOCATABLE :: d_u_con(:,:),d_v_con(:,:)
23      !$OMP THREADPRIVATE(d_u_con,d_v_con)
24      REAL, SAVE, ALLOCATABLE :: d_t_wake(:,:),d_q_wake(:,:)
25      !$OMP THREADPRIVATE( d_t_wake,d_q_wake)
26      REAL, SAVE, ALLOCATABLE :: d_t_lsc(:,:),d_q_lsc(:,:),d_ql_lsc(:,:)
27      !$OMP THREADPRIVATE(d_t_lsc,d_q_lsc,d_ql_lsc)
28      REAL, SAVE, ALLOCATABLE :: d_t_ajsb(:,:), d_q_ajsb(:,:)
29      !$OMP THREADPRIVATE(d_t_ajsb, d_q_ajsb)
30      REAL, SAVE, ALLOCATABLE :: d_t_ajs(:,:), d_q_ajs(:,:)
31      !$OMP THREADPRIVATE(d_t_ajs, d_q_ajs)
32      REAL, SAVE, ALLOCATABLE :: d_u_ajs(:,:), d_v_ajs(:,:)
33      !$OMP THREADPRIVATE(d_u_ajs, d_v_ajs)
34      REAL, SAVE, ALLOCATABLE :: d_t_eva(:,:),d_q_eva(:,:)
35      !$OMP THREADPRIVATE(d_t_eva,d_q_eva)
36!tendances dues a oro et lif
37      REAL, SAVE, ALLOCATABLE :: d_t_oli(:,:)
38      !$OMP THREADPRIVATE(d_t_oli)
39      REAL, SAVE, ALLOCATABLE :: d_u_oli(:,:), d_v_oli(:,:)
40      !$OMP THREADPRIVATE(d_u_oli, d_v_oli)
41      REAL, SAVE, ALLOCATABLE :: d_t_vdf(:,:), d_q_vdf(:,:)
42      !$OMP THREADPRIVATE( d_t_vdf, d_q_vdf)
43      REAL, SAVE, ALLOCATABLE :: d_u_vdf(:,:), d_v_vdf(:,:)
44      !$OMP THREADPRIVATE(d_u_vdf, d_v_vdf)
45      REAL, SAVE, ALLOCATABLE :: d_t_oro(:,:)
46      !$OMP THREADPRIVATE(d_t_oro)
47      REAL, SAVE, ALLOCATABLE :: d_u_oro(:,:), d_v_oro(:,:)
48      !$OMP THREADPRIVATE(d_u_oro, d_v_oro)
49      REAL, SAVE, ALLOCATABLE :: d_t_lif(:,:)
50      !$OMP THREADPRIVATE(d_t_lif)
51      REAL, SAVE, ALLOCATABLE :: d_u_lif(:,:), d_v_lif(:,:)
52      !$OMP THREADPRIVATE(d_u_lif, d_v_lif)
53! Tendances Ondes de G non oro (runs strato).
54      REAL, SAVE, ALLOCATABLE :: d_u_hin(:,:)
55      !$OMP THREADPRIVATE(d_u_hin)
56      REAL, SAVE, ALLOCATABLE :: d_v_hin(:,:)
57      !$OMP THREADPRIVATE(d_v_hin)
58      REAL, SAVE, ALLOCATABLE :: d_t_hin(:,:)
59      !$OMP THREADPRIVATE(d_t_hin)
60
61! tendance du a la conersion Ec -> E thermique
62      REAL, SAVE, ALLOCATABLE :: d_t_ec(:,:)
63      !$OMP THREADPRIVATE(d_t_ec)
64      REAL, SAVE, ALLOCATABLE :: d_ts(:,:), d_tr(:,:,:)
65      !$OMP THREADPRIVATE(d_ts, d_tr)
66CONTAINS
67
68!======================================================================
69SUBROUTINE phys_local_var_init
70use dimphy
71IMPLICIT NONE
72#include "indicesol.h"
73      allocate(t_seri(klon,klev),q_seri(klon,klev),ql_seri(klon,klev),qs_seri(klon,klev))
74      allocate(u_seri(klon,klev),v_seri(klon,klev))
75
76      allocate(tr_seri(klon,klev,nbtr))
77      allocate(d_t_dyn(klon,klev),d_q_dyn(klon,klev))
78      allocate(d_t_con(klon,klev),d_q_con(klon,klev))
79      allocate(d_u_con(klon,klev),d_v_con(klon,klev))
80      allocate(d_t_wake(klon,klev),d_q_wake(klon,klev))
81      allocate(d_t_lsc(klon,klev),d_q_lsc(klon,klev))
82      allocate(d_ql_lsc(klon,klev))
83      allocate(d_t_ajsb(klon,klev),d_q_ajsb(klon,klev))
84      allocate(d_t_ajs(klon,klev),d_q_ajs(klon,klev))
85      allocate(d_u_ajs(klon,klev),d_v_ajs(klon,klev))
86      allocate(d_t_eva(klon,klev),d_q_eva(klon,klev))
87      allocate(d_t_vdf(klon,klev),d_q_vdf(klon,klev))
88      allocate(d_u_vdf(klon,klev),d_v_vdf(klon,klev))
89      allocate(d_t_oli(klon,klev),d_t_oro(klon,klev))
90      allocate(d_u_oli(klon,klev),d_v_oli(klon,klev))
91      allocate(d_u_oro(klon,klev),d_v_oro(klon,klev))
92      allocate(d_t_lif(klon,klev),d_t_ec(klon,klev))
93      allocate(d_u_lif(klon,klev),d_v_lif(klon,klev))
94      allocate(d_ts(klon,klev), d_tr(klon,klev,nbtr))
95END SUBROUTINE phys_local_var_init
96
97!======================================================================
98SUBROUTINE phys_local_var_end
99use dimphy
100IMPLICIT NONE
101#include "indicesol.h"
102      deallocate(t_seri,q_seri,ql_seri,qs_seri)
103      deallocate(u_seri,v_seri)
104
105      deallocate(tr_seri)
106      deallocate(d_t_dyn,d_q_dyn)
107      deallocate(d_t_con,d_q_con)
108      deallocate(d_u_con,d_v_con)
109      deallocate(d_t_wake,d_q_wake)
110      deallocate(d_t_lsc,d_q_lsc)
111      deallocate(d_ql_lsc)
112      deallocate(d_t_ajsb,d_q_ajsb)
113      deallocate(d_t_ajs,d_q_ajs)
114      deallocate(d_u_ajs,d_v_ajs)
115      deallocate(d_t_eva,d_q_eva)
116      deallocate(d_t_vdf,d_q_vdf)
117      deallocate(d_u_vdf,d_v_vdf)
118      deallocate(d_t_oli,d_t_oro)
119      deallocate(d_u_oli,d_v_oli)
120      deallocate(d_u_oro,d_v_oro)
121      deallocate(d_t_lif,d_t_ec)
122      deallocate(d_u_lif,d_v_lif)
123      deallocate(d_ts, d_tr)
124END SUBROUTINE phys_local_var_end
125
126END MODULE phys_local_var_mod
Note: See TracBrowser for help on using the repository browser.