@@ -128,17 +128,17 @@ void MAMMicrophysics::set_grids(
128
128
constexpr int nmodes = mam4::AeroConfig::num_modes ();
129
129
130
130
// layout for 3D (ncol, nmodes, nlevs)
131
- FieldLayout scalar3d_mid_nmodes = grid_->get_3d_vector_layout (
131
+ FieldLayout vector3d_mid_nmodes = grid_->get_3d_vector_layout (
132
132
true , nmodes, mam_coupling::num_modes_tag_name ());
133
133
134
134
// Geometric mean dry diameter for number distribution [m]
135
- add_field<Required>(" dgnum" , scalar3d_mid_nmodes , m, grid_name);
135
+ add_field<Required>(" dgnum" , vector3d_mid_nmodes , m, grid_name);
136
136
// Geometric mean wet diameter for number distribution [m]
137
- add_field<Required>(" dgnumwet" , scalar3d_mid_nmodes , m, grid_name);
137
+ add_field<Required>(" dgnumwet" , vector3d_mid_nmodes , m, grid_name);
138
138
139
139
constexpr auto m3 = pow (m, 3 );
140
140
// Wet density of interstitial aerosol [kg/m3]
141
- add_field<Required>(" wetdens" , scalar3d_mid_nmodes , kg / m3, grid_name);
141
+ add_field<Required>(" wetdens" , vector3d_mid_nmodes , kg / m3, grid_name);
142
142
143
143
// For fractional land use
144
144
const FieldLayout vector2d_class =
@@ -181,30 +181,30 @@ void MAMMicrophysics::set_grids(
181
181
add_fields_cloudborne_aerosol ();
182
182
// ----------- Updated variables from other mam4xx processes ------------
183
183
// layout for Constituent fluxes
184
- FieldLayout scalar2d_pcnst =
184
+ FieldLayout vector2d_pcnst =
185
185
grid_->get_2d_vector_layout (mam4::pcnst, " num_phys_constituents" );
186
- FieldLayout scalar3d_num_gas_aerosol_constituents =
186
+ FieldLayout vector3d_num_gas_aerosol_constituents =
187
187
grid_->get_3d_vector_layout (true , mam_coupling::gas_pcnst (), " num_gas_aerosol_constituents" );
188
188
189
189
// Constituent fluxes of species in [kg/m2/s]
190
- add_field<Updated>(" constituent_fluxes" , scalar2d_pcnst , kg / m2 / s,
190
+ add_field<Updated>(" constituent_fluxes" , vector2d_pcnst , kg / m2 / s,
191
191
grid_name);
192
192
193
193
// Number of externally forced chemical species
194
194
constexpr int extcnt = mam4::gas_chemistry::extcnt;
195
195
196
- FieldLayout scalar3d_extcnt = grid_->get_3d_vector_layout (true , extcnt, " ext_cnt" );
196
+ FieldLayout vector3d_extcnt = grid_->get_3d_vector_layout (true , extcnt, " ext_cnt" );
197
197
198
198
// Register computed fields for external forcing
199
199
// - extfrc: 3D instantaneous forcing rate [kg/m³/s]
200
- add_field<Computed>(" mam4_external_forcing" , scalar3d_extcnt , kg / m3 / s, grid_name);
200
+ add_field<Computed>(" mam4_external_forcing" , vector3d_extcnt , kg / m3 / s, grid_name);
201
201
202
202
// Register computed fields for tendencies due to gas phase chemistry
203
203
// - dvmr/dt: Tendencies for mixing ratios [kg/kg/s]
204
204
extra_mam4_diags_ = m_params.get <bool >(" extra_mam4_diags" , false );
205
205
if (extra_mam4_diags_) {
206
- add_field<Computed>(" tendency_gas_phase_chemistry" , scalar3d_num_gas_aerosol_constituents , kg / kg / s, grid_name);
207
- add_field<Computed>(" tendency_aqueous_chemistry" , scalar3d_num_gas_aerosol_constituents , kg / kg / s, grid_name);
206
+ add_field<Computed>(" tendency_gas_phase_chemistry" , vector3d_num_gas_aerosol_constituents , kg / kg / s, grid_name);
207
+ add_field<Computed>(" tendency_aqueous_chemistry" , vector3d_num_gas_aerosol_constituents , kg / kg / s, grid_name);
208
208
}
209
209
210
210
// Creating a Linoz reader and setting Linoz parameters involves reading data
0 commit comments