@@ -11,12 +11,8 @@ namespace mam4 {
1111
1212namespace mo_sethet {
1313
14- // const int ktop = ConvProc::Config::ktop;
1514constexpr Real avo = haero::Constants::avogadro;
1615const Real pi = haero::Constants::pi;
17- // constexpr Real rgrav =
18- // mo_chm_diags::rgrav; // reciprocal of acceleration of gravity ~ m/s^2
19- // reciprocal of gravity
2016constexpr Real rga = 1.0 / haero::Constants::gravity;
2117constexpr int gas_pcnst = gas_chemistry::gas_pcnst;
2218const Real boltz_cgs = haero::Constants::boltzmann * 1 .e7 ; // erg/K
@@ -125,13 +121,13 @@ void gas_washout(
125121 // -----------------------------------------------------------------
126122 for (int k = plev; k < pver; k++) {
127123 xeqca_r = xgas (k) /
128- (xliq_ik * avo2 + 1.0 / (xhen_i (k) * const0 * tfld_i (k))) *
129- xliq_ik * avo2;
124+ (xliq_ik * avo2 + 1.0 / (xhen_i (k) * const0 * tfld_i (k))) *
125+ xliq_ik * avo2;
130126 // -----------------------------------------------------------------
131127 // ... calculate ca; inside cloud concentration in #/cm3(air)
132128 // -----------------------------------------------------------------
133- xca_r = geo_fac * xkgm * xgas (k) / (xrm * xum) * delz_i (k) * xliq_ik * cm3_2_m3;
134-
129+ xca_r =
130+ geo_fac * xkgm * xgas (k) / (xrm * xum) * delz_i (k) * xliq_ik * cm3_2_m3;
135131
136132 // -----------------------------------------------------------------
137133 // ... if is not saturated (take hno3 as an example)
@@ -233,11 +229,7 @@ void sethet(
233229 Real m3_2_cm3 = 1.0e6 ; // convert m^3 to cm^3
234230 Real MISSING = -999999.0 ;
235231 Real large_value_lifetime = 1.0e29 ; // a large lifetime value if no washout
236- // Real gas_wetdep_cnt = mam4::modal_aer_opt::gas_pcnst;
237232
238- // character(len=3) :: hetratestrg
239- // int icol, kk, kk2 // indicies
240- // int mm, mm2 // indicies
241233 int ktop; // tropopause level, 100mb for lat < 60 and 300mb for lat > 60
242234 Real xkgm; // mass flux on rain drop
243235 Real stay; // fraction of layer traversed by falling drop in timestep delt
@@ -300,7 +292,6 @@ void sethet(
300292 // ... Find the level index that only calculate het_rates below
301293 // -----------------------------------------------------------------
302294 find_ktop (rlat, press, ktop); // populate ktop
303- // ktop_all = minval( ktop(:) )
304295
305296 // this is added to rescale the variable precip (which can only be positive)
306297 // to the actual vertical integral of positive and negative values. This
@@ -378,7 +369,7 @@ void sethet(
378369 xgas2); // inout
379370 gas_washout (team, kk, xkgm, xliq (kk), // in
380371 xhen_so2, tfld, delz, // in
381- xgas3); // inout
372+ xgas3); // inout
382373 }
383374 // -----------------------------------------------------------------
384375 // ... calculate the lifetime of washout (second)
0 commit comments