@@ -2113,15 +2113,15 @@ void get_gcm_tend_diags_from_subareas(
21132113
21142114// --------------------------------------------------------------------------------
21152115// --------------------------------------------------------------------------------
2116-
2116+ template < typename VectorType, typename VectorTypeModes>
21172117KOKKOS_INLINE_FUNCTION
21182118void modal_aero_amicphys_intr (
21192119 // in
21202120 const AmicPhysConfig &config, const Real deltat, const Real temp,
21212121 const Real pmid, const Real pdel, const Real zm, const Real pblh,
21222122 const Real qv, const Real cld,
21232123 // in/out
2124- Real ( &qq)[gas_pcnst], Real ( &qqcw)[gas_pcnst] ,
2124+ VectorType &qq, VectorType &qqcw,
21252125 // Diagnostics (out)
21262126 const int kk, // level info needed for diagnistics output
21272127 const View2D &gas_aero_exchange_condensation,
@@ -2130,11 +2130,12 @@ void modal_aero_amicphys_intr(
21302130 const View2D &gas_aero_exchange_coagulation,
21312131 const View2D &gas_aero_exchange_renaming_cloud_borne,
21322132 // in
2133- const Real (&q_pregaschem)[gas_pcnst],
2134- const Real (&q_precldchem)[gas_pcnst],
2135- const Real (&qqcw_precldchem)[gas_pcnst], const Real (&dgncur_a)[num_modes],
2136- const Real (&dgncur_awet)[num_modes],
2137- const Real (&wetdens_host)[num_modes]) {
2133+ const VectorType& q_pregaschem,
2134+ const VectorType& q_precldchem,
2135+ const VectorType& qqcw_precldchem,
2136+ const VectorTypeModes& dgncur_a,
2137+ const VectorTypeModes& dgncur_awet,
2138+ const VectorTypeModes& wetdens_host) {
21382139 // deltat: time step
21392140 // qq(ncol,pver,pcnst): current tracer mixing ratios (TMRs)
21402141 // these values are updated (so out /= in)
0 commit comments