@@ -207,10 +207,17 @@ void MAMMicrophysics::set_grids(
207207 const FieldLayout vector3d_num_gas_aerosol_constituents =
208208 grid_->get_3d_vector_layout (true , mam_coupling::gas_pcnst (), " num_gas_aerosol_constituents" );
209209
210- // Fields for tendencies due to gas phase chemistry
211- // - dvmr/dt: Tendencies for mixing ratios [kg/kg/s]
210+ // Diagnostics: tendencies due to gas phase chemistry [kg/kg/s]
212211 add_field<Computed>(" mam4_microphysics_tendency_gas_phase_chemistry" , vector3d_num_gas_aerosol_constituents, kg / kg / s, grid_name);
212+
213+ // Diagnostics: tendencies due to aqueous chemistry [kg/kg/s]
213214 add_field<Computed>(" mam4_microphysics_tendency_aqueous_chemistry" , vector3d_num_gas_aerosol_constituents, kg / kg / s, grid_name);
215+
216+ // Diagnostics: SO4 in-cloud tendencies[kg/kg/s]
217+ add_field<Computed>(" mam4_microphysics_tendency_aqso4" , vector3d_mid_nmodes, kg / kg / s, grid_name);
218+
219+ // Diagnostics: H2SO4 in-cloud tendencies[kg/kg/s]
220+ add_field<Computed>(" mam4_microphysics_tendency_aqh2so4" , vector3d_mid_nmodes, kg / kg / s, grid_name);
214221 }
215222
216223 // Creating a Linoz reader and setting Linoz parameters involves reading data
@@ -655,9 +662,12 @@ void MAMMicrophysics::run_impl(const double dt) {
655662
656663 // - dvmr/dt: Tendencies for mixing ratios [kg/kg/s]
657664 view_3d gas_phase_chemistry_dvmrdt, aqueous_chemistry_dvmrdt;
665+ view_3d aqso4_incloud_mmr_tendency, aqh2so4_incloud_mmr_tendency;
658666 if (extra_mam4_aero_microphys_diags_) {
659667 gas_phase_chemistry_dvmrdt = get_field_out (" mam4_microphysics_tendency_gas_phase_chemistry" ).get_view <Real ***>();
660668 aqueous_chemistry_dvmrdt = get_field_out (" mam4_microphysics_tendency_aqueous_chemistry" ).get_view <Real ***>();
669+ aqso4_incloud_mmr_tendency = get_field_out (" mam4_microphysics_tendency_aqso4" ).get_view <Real ***>();
670+ aqh2so4_incloud_mmr_tendency = get_field_out (" mam4_microphysics_tendency_aqh2so4" ).get_view <Real ***>();
661671 }
662672
663673 // climatology data for linear stratospheric chemistry
@@ -903,6 +913,8 @@ void MAMMicrophysics::run_impl(const double dt) {
903913 if (extra_mam4_aero_microphys_diags) {
904914 diag_arrays.gas_phase_chemistry_dvmrdt = ekat::subview (gas_phase_chemistry_dvmrdt, icol);
905915 diag_arrays.aqueous_chemistry_dvmrdt = ekat::subview (aqueous_chemistry_dvmrdt, icol);
916+ diag_arrays.aqso4_incloud_mmr_tendency = ekat::subview (aqso4_incloud_mmr_tendency, icol);
917+ diag_arrays.aqh2so4_incloud_mmr_tendency = ekat::subview (aqh2so4_incloud_mmr_tendency, icol);
906918 }
907919
908920 // Wind speed at the surface
0 commit comments