[904] | 1 | MODULE phys_local_var_mod |
---|
| 2 | ! Variables locales pour effectuer les appels en serie |
---|
| 3 | !====================================================================== |
---|
| 4 | ! |
---|
| 5 | ! |
---|
| 6 | !====================================================================== |
---|
| 7 | ! Declaration des variables |
---|
| 8 | |
---|
[987] | 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) |
---|
[904] | 15 | |
---|
[987] | 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) |
---|
[909] | 36 | !tendances dues a oro et lif |
---|
[987] | 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) |
---|
[1001] | 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 | |
---|
[909] | 61 | ! tendance du a la conersion Ec -> E thermique |
---|
[987] | 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) |
---|
[904] | 66 | CONTAINS |
---|
| 67 | |
---|
| 68 | !====================================================================== |
---|
| 69 | SUBROUTINE phys_local_var_init |
---|
| 70 | use dimphy |
---|
| 71 | IMPLICIT NONE |
---|
[909] | 72 | #include "indicesol.h" |
---|
[904] | 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)) |
---|
[909] | 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)) |
---|
[904] | 95 | END SUBROUTINE phys_local_var_init |
---|
| 96 | |
---|
| 97 | !====================================================================== |
---|
| 98 | SUBROUTINE phys_local_var_end |
---|
| 99 | use dimphy |
---|
| 100 | IMPLICIT NONE |
---|
[909] | 101 | #include "indicesol.h" |
---|
[904] | 102 | deallocate(t_seri,q_seri,ql_seri,qs_seri) |
---|
| 103 | deallocate(u_seri,v_seri) |
---|
[909] | 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) |
---|
[904] | 124 | END SUBROUTINE phys_local_var_end |
---|
| 125 | |
---|
| 126 | END MODULE phys_local_var_mod |
---|