@@ -85,7 +85,8 @@ module CCPP_typedefs
85
85
! CCPP_interstitial_type
86
86
!- ----------------------------
87
87
subroutine interstitial_create (Interstitial , is , ie , isd , ied , js , je , jsd , jed , npz , ng , &
88
- dt_atmos , p_split , k_split , zvir , p_ref , ak , bk , do_qa , &
88
+ dt_atmos , p_split , k_split , zvir , p_ref , ak , bk , &
89
+ do_ql , do_qi , do_qr , do_qs , do_qg , do_qa , &
89
90
kappa , hydrostatic , do_sat_adj , &
90
91
delp , delz , area , peln , phis , pkz , pt , &
91
92
qvi , qv , ql , qi , qr , qs , qg , qc , q_con , &
@@ -111,6 +112,11 @@ subroutine interstitial_create (Interstitial, is, ie, isd, ied, js, je, jsd, jed
111
112
real (kind_dyn), intent (in ) :: p_ref
112
113
real (kind_dyn), intent (in ) :: ak(:)
113
114
real (kind_dyn), intent (in ) :: bk(:)
115
+ logical , intent (in ) :: do_ql
116
+ logical , intent (in ) :: do_qi
117
+ logical , intent (in ) :: do_qr
118
+ logical , intent (in ) :: do_qs
119
+ logical , intent (in ) :: do_qg
114
120
logical , intent (in ) :: do_qa
115
121
real (kind_dyn), intent (in ) :: kappa
116
122
logical , intent (in ) :: hydrostatic
@@ -194,14 +200,12 @@ subroutine interstitial_create (Interstitial, is, ie, isd, ied, js, je, jsd, jed
194
200
Interstitial% pt = > pt
195
201
Interstitial% qvi = > qvi
196
202
Interstitial% qv = > qv
197
- Interstitial% ql = > ql
198
- Interstitial% qi = > qi
199
- Interstitial% qr = > qr
200
- Interstitial% qs = > qs
201
- Interstitial% qg = > qg
202
- if (do_qa) then
203
- Interstitial% qc = > qc
204
- end if
203
+ if (do_ql) Interstitial% ql = > ql
204
+ if (do_qi) Interstitial% qi = > qi
205
+ if (do_qr) Interstitial% qr = > qr
206
+ if (do_qs) Interstitial% qs = > qs
207
+ if (do_qg) Interstitial% qg = > qg
208
+ if (do_qa) Interstitial% qc = > qc
205
209
#ifdef USE_COND
206
210
Interstitial% npzq_con = npz
207
211
#else
@@ -338,14 +342,12 @@ subroutine interstitial_print(Interstitial)
338
342
write (0 ,* ) ' sum(Interstitial%pt) = ' , Interstitial% pt
339
343
write (0 ,* ) ' sum(Interstitial%qvi) = ' , Interstitial% qvi
340
344
write (0 ,* ) ' sum(Interstitial%qv) = ' , Interstitial% qv
341
- write (0 ,* ) ' sum(Interstitial%ql) = ' , Interstitial% ql
342
- write (0 ,* ) ' sum(Interstitial%qi) = ' , Interstitial% qi
343
- write (0 ,* ) ' sum(Interstitial%qr) = ' , Interstitial% qr
344
- write (0 ,* ) ' sum(Interstitial%qs) = ' , Interstitial% qs
345
- write (0 ,* ) ' sum(Interstitial%qg) = ' , Interstitial% qg
346
- if (associated (Interstitial% qc)) then
347
- write (0 ,* ) ' sum(Interstitial%qc) = ' , Interstitial% qc
348
- end if
345
+ if (associated (Interstitial% ql)) write (0 ,* ) ' sum(Interstitial%ql) = ' , Interstitial% ql
346
+ if (associated (Interstitial% qi)) write (0 ,* ) ' sum(Interstitial%qi) = ' , Interstitial% qi
347
+ if (associated (Interstitial% qr)) write (0 ,* ) ' sum(Interstitial%qr) = ' , Interstitial% qr
348
+ if (associated (Interstitial% qs)) write (0 ,* ) ' sum(Interstitial%qs) = ' , Interstitial% qs
349
+ if (associated (Interstitial% qg)) write (0 ,* ) ' sum(Interstitial%qg) = ' , Interstitial% qg
350
+ if (associated (Interstitial% qc)) write (0 ,* ) ' sum(Interstitial%qc) = ' , Interstitial% qc
349
351
write (0 ,* ) ' sum(Interstitial%q_con) = ' , Interstitial% q_con
350
352
write (0 ,* ) ' Interstitial%hydrostatic = ' , Interstitial% hydrostatic
351
353
write (0 ,* ) ' Interstitial%nwat = ' , Interstitial% nwat
0 commit comments