67 character(len=*) :: tinteg_type
72 if ( tinteg_type /=
'EULER' )
then
73 log_error(
"ATMOS_DYN_Tinteg_large_euler_setup",*)
'TINTEG_LARGE_TYPE is not EULER. Check!'
83 DENS, MOMZ, MOMX, MOMY, RHOT, QTRC, PROG, &
84 DENS_av, MOMZ_av, MOMX_av, MOMY_av, RHOT_av, QTRC_av, &
85 num_diff, num_diff_q, &
86 DENS_tp, MOMZ_tp, MOMX_tp, MOMY_tp, RHOT_tp, RHOQ_tp, &
88 CDZ, CDX, CDY, FDZ, FDX, FDY, &
89 RCDZ, RCDX, RCDY, RFDZ, RFDX, RFDY, &
91 J13G, J23G, J33G, MAPF, &
92 AQ_R, AQ_CV, AQ_CP, AQ_MASS, &
93 REF_dens, REF_pott, REF_qv, REF_pres, &
94 BND_W, BND_E, BND_S, BND_N, TwoD, &
95 ND_COEF, ND_COEF_Q, ND_LAPLACIAN_NUM, &
96 ND_SFC_FACT, ND_USE_RS, &
97 BND_QA, BND_IQ, BND_SMOOTHER_FACT, &
98 DAMP_DENS, DAMP_VELZ, DAMP_VELX, &
99 DAMP_VELY, DAMP_POTT, DAMP_QTRC, &
100 DAMP_alpha_DENS, DAMP_alpha_VELZ, DAMP_alpha_VELX, &
101 DAMP_alpha_VELY, DAMP_alpha_POTT, DAMP_alpha_QTRC, &
102 MFLUX_OFFSET_X, MFLUX_OFFSET_Y, &
103 wdamp_coef, divdmp_coef, &
104 FLAG_TRACER_SPLIT_TEND, &
105 FLAG_FCT_MOMENTUM, FLAG_FCT_T, FLAG_FCT_TRACER, &
106 FLAG_FCT_ALONG_STREAM, &
116 real(
rp),
intent(inout) :: dens(
ka,
ia,
ja)
117 real(
rp),
intent(inout) :: momz(
ka,
ia,
ja)
118 real(
rp),
intent(inout) :: momx(
ka,
ia,
ja)
119 real(
rp),
intent(inout) :: momy(
ka,
ia,
ja)
120 real(
rp),
intent(inout) :: rhot(
ka,
ia,
ja)
124 real(
rp),
intent(inout) :: dens_av(
ka,
ia,
ja)
125 real(
rp),
intent(inout) :: momz_av(
ka,
ia,
ja)
126 real(
rp),
intent(inout) :: momx_av(
ka,
ia,
ja)
127 real(
rp),
intent(inout) :: momy_av(
ka,
ia,
ja)
128 real(
rp),
intent(inout) :: rhot_av(
ka,
ia,
ja)
129 real(
rp),
intent(inout) :: qtrc_av(
ka,
ia,
ja,
qa)
131 real(
rp),
intent(out) :: num_diff (
ka,
ia,
ja,5,3)
132 real(
rp),
intent(out) :: num_diff_q(
ka,
ia,
ja,3)
134 real(
rp),
intent(in) :: dens_tp(
ka,
ia,
ja)
135 real(
rp),
intent(in) :: momz_tp(
ka,
ia,
ja)
136 real(
rp),
intent(in) :: momx_tp(
ka,
ia,
ja)
137 real(
rp),
intent(in) :: momy_tp(
ka,
ia,
ja)
138 real(
rp),
intent(in) :: rhot_tp(
ka,
ia,
ja)
141 real(
rp),
intent(in) :: corioli(
ia,
ja)
143 real(
rp),
intent(in) :: cdz (
ka)
144 real(
rp),
intent(in) :: cdx (
ia)
145 real(
rp),
intent(in) :: cdy (
ja)
146 real(
rp),
intent(in) :: fdz (
ka-1)
147 real(
rp),
intent(in) :: fdx (
ia-1)
148 real(
rp),
intent(in) :: fdy (
ja-1)
149 real(
rp),
intent(in) :: rcdz(
ka)
150 real(
rp),
intent(in) :: rcdx(
ia)
151 real(
rp),
intent(in) :: rcdy(
ja)
152 real(
rp),
intent(in) :: rfdz(
ka-1)
153 real(
rp),
intent(in) :: rfdx(
ia-1)
154 real(
rp),
intent(in) :: rfdy(
ja-1)
156 real(
rp),
intent(in) :: phi (
ka,
ia,
ja)
157 real(
rp),
intent(in) :: gsqrt(
ka,
ia,
ja,7)
158 real(
rp),
intent(in) :: j13g (
ka,
ia,
ja,7)
159 real(
rp),
intent(in) :: j23g (
ka,
ia,
ja,7)
160 real(
rp),
intent(in) :: j33g
161 real(
rp),
intent(in) :: mapf (
ia,
ja,2,4)
163 real(
rp),
intent(in) :: aq_r (
qa)
164 real(
rp),
intent(in) :: aq_cv (
qa)
165 real(
rp),
intent(in) :: aq_cp (
qa)
166 real(
rp),
intent(in) :: aq_mass(
qa)
168 real(
rp),
intent(in) :: ref_dens(
ka,
ia,
ja)
169 real(
rp),
intent(in) :: ref_pott(
ka,
ia,
ja)
170 real(
rp),
intent(in) :: ref_qv (
ka,
ia,
ja)
171 real(
rp),
intent(in) :: ref_pres(
ka,
ia,
ja)
173 logical,
intent(in) :: bnd_w
174 logical,
intent(in) :: bnd_e
175 logical,
intent(in) :: bnd_s
176 logical,
intent(in) :: bnd_n
177 logical,
intent(in) :: twod
179 real(
rp),
intent(in) :: nd_coef
180 real(
rp),
intent(in) :: nd_coef_q
181 integer,
intent(in) :: nd_laplacian_num
182 real(
rp),
intent(in) :: nd_sfc_fact
183 logical,
intent(in) :: nd_use_rs
185 integer,
intent(in) :: bnd_qa
186 integer,
intent(in) :: bnd_iq(
qa)
187 real(
rp),
intent(in) :: bnd_smoother_fact
189 real(
rp),
intent(in) :: damp_dens(
ka,
ia,
ja)
190 real(
rp),
intent(in) :: damp_velz(
ka,
ia,
ja)
191 real(
rp),
intent(in) :: damp_velx(
ka,
ia,
ja)
192 real(
rp),
intent(in) :: damp_vely(
ka,
ia,
ja)
193 real(
rp),
intent(in) :: damp_pott(
ka,
ia,
ja)
194 real(
rp),
intent(in) :: damp_qtrc(
ka,
ia,
ja,bnd_qa)
196 real(
rp),
intent(in) :: damp_alpha_dens(
ka,
ia,
ja)
197 real(
rp),
intent(in) :: damp_alpha_velz(
ka,
ia,
ja)
198 real(
rp),
intent(in) :: damp_alpha_velx(
ka,
ia,
ja)
199 real(
rp),
intent(in) :: damp_alpha_vely(
ka,
ia,
ja)
200 real(
rp),
intent(in) :: damp_alpha_pott(
ka,
ia,
ja)
201 real(
rp),
intent(in) :: damp_alpha_qtrc(
ka,
ia,
ja,bnd_qa)
202 real(
rp),
intent(in) :: mflux_offset_x(
ka,
ja,2)
203 real(
rp),
intent(in) :: mflux_offset_y(
ka,
ia,2)
205 real(
rp),
intent(in) :: wdamp_coef(
ka)
206 real(
rp),
intent(in) :: divdmp_coef
208 logical,
intent(in) :: flag_tracer_split_tend
209 logical,
intent(in) :: flag_fct_momentum
210 logical,
intent(in) :: flag_fct_t
211 logical,
intent(in) :: flag_fct_tracer
212 logical,
intent(in) :: flag_fct_along_stream
214 logical,
intent(in) :: use_average
216 integer,
intent(in) :: i_qv
218 real(
dp),
intent(in) :: dtl
219 real(
dp),
intent(in) :: dts
227 qtrc0(:,:,:,:) = qtrc(:,:,:,:)
233 dens, momz, momx, momy, rhot, qtrc, prog, &
234 dens_av, momz_av, momx_av, momy_av, rhot_av, qtrc_av, &
235 num_diff, num_diff_q, &
237 dens_tp, momz_tp, momx_tp, momy_tp, rhot_tp, rhoq_tp, &
239 cdz, cdx, cdy, fdz, fdx, fdy, &
240 rcdz, rcdx, rcdy, rfdz, rfdx, rfdy, &
242 j13g, j23g, j33g, mapf, &
243 aq_r, aq_cv, aq_cp, aq_mass, &
244 ref_dens, ref_pott, ref_qv, ref_pres, &
245 bnd_w, bnd_e, bnd_s, bnd_n, twod, &
246 nd_coef, nd_coef_q, nd_laplacian_num, &
247 nd_sfc_fact, nd_use_rs, &
248 bnd_qa, bnd_iq, bnd_smoother_fact, &
249 damp_dens, damp_velz, damp_velx, &
250 damp_vely, damp_pott, damp_qtrc, &
251 damp_alpha_dens, damp_alpha_velz, damp_alpha_velx, &
252 damp_alpha_vely, damp_alpha_pott, damp_alpha_qtrc, &
253 mflux_offset_x, mflux_offset_y, &
254 wdamp_coef, divdmp_coef, &
255 flag_tracer_split_tend, &
256 flag_fct_momentum, flag_fct_t, flag_fct_tracer, &
257 flag_fct_along_stream, &