Skip to content

Commit cb70a4c

Browse files
committed
Change turbulence_advected->no_turbulence_advection, and give a default value (false)
1 parent 503bff1 commit cb70a4c

11 files changed

+33
-33
lines changed

components/eamxx/src/control/atmosphere_surface_coupling_exporter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ void SurfaceCouplingExporter::set_grids(const std::shared_ptr<const GridsManager
4444
add_field<Required>("phis", scalar2d_layout, m2/s2, grid_name);
4545
add_field<Required>("p_mid", scalar3d_layout_mid, Pa, grid_name, ps);
4646
add_field<Required>("T_mid", scalar3d_layout_mid, K, grid_name, ps);
47-
add_tracer<Required>("qv", m_grid, kg/kg, true, ps);
47+
add_tracer<Required>("qv", m_grid, kg/kg, ps);
4848
// TODO: Switch horiz_winds to using U and V, note right now there is an issue with when the subfields are created, so can't switch yet.
4949
add_field<Required>("horiz_winds", vector3d_layout, m/s, grid_name);
5050
add_field<Required>("sfc_flux_dir_nir", scalar2d_layout, W/m2, grid_name);

components/eamxx/src/dynamics/homme/eamxx_homme_process_interface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ void HommeDynamics::set_grids (const std::shared_ptr<const GridsManager> grids_m
179179
add_field<Computed>("p_dry_mid", pg_scalar3d_mid, Pa, pgn,N);
180180
add_field<Computed>("omega", pg_scalar3d_mid, Pa/s, pgn,N);
181181

182-
add_tracer<Updated >("qv", m_phys_grid, kg/kg, true, N);
182+
add_tracer<Updated >("qv", m_phys_grid, kg/kg, N);
183183
add_group<Updated>("tracers",pgn,N, true);
184184

185185
if (fv_phys_active()) {

components/eamxx/src/physics/cld_fraction/eamxx_cld_fraction_process_interface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void CldFraction::set_grids(const std::shared_ptr<const GridsManager> grids_mana
3838

3939
// Set of fields used strictly as input
4040
constexpr int ps = Pack::n;
41-
add_tracer<Required>("qi", m_grid, kg/kg, true, ps);
41+
add_tracer<Required>("qi", m_grid, kg/kg, ps);
4242
add_field<Required>("cldfrac_liq", scalar3d_layout_mid, nondim, grid_name,ps);
4343

4444
// Set of fields used strictly as output

components/eamxx/src/physics/cosp/eamxx_cosp.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ void Cosp::set_grids(const std::shared_ptr<const GridsManager> grids_manager)
7575
add_field<Required>("phis", scalar2d , m2/s2, grid_name);
7676
add_field<Required>("pseudo_density", scalar3d_mid, Pa, grid_name);
7777
add_field<Required>("cldfrac_rad", scalar3d_mid, nondim, grid_name);
78-
add_tracer<Required>("qv", m_grid, kg/kg, true);
79-
add_tracer<Required>("qc", m_grid, kg/kg, true);
80-
add_tracer<Required>("qi", m_grid, kg/kg, true);
78+
add_tracer<Required>("qv", m_grid, kg/kg);
79+
add_tracer<Required>("qc", m_grid, kg/kg);
80+
add_tracer<Required>("qi", m_grid, kg/kg);
8181
// Optical properties, should be computed in radiation interface
8282
add_field<Required>("dtau067", scalar3d_mid, nondim, grid_name); // 0.67 micron optical depth
8383
add_field<Required>("dtau105", scalar3d_mid, nondim, grid_name); // 10.5 micron optical depth

components/eamxx/src/physics/mam/eamxx_mam_generic_process_interface.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,13 @@ void MAMGenericInterface::add_tracers_interstitial_aerosol() {
151151
// interstitial aerosol tracers of interest: number (n) mixing ratios
152152
const std::string int_nmr_field_name =
153153
mam_coupling::int_aero_nmr_field_name(mode);
154-
add_tracer<Updated>(int_nmr_field_name, grid_, n_unit, false);
154+
add_tracer<Updated>(int_nmr_field_name, grid_, n_unit, 1, true);
155155
for(int a = 0; a < mam_coupling::num_aero_species(); ++a) {
156156
// (interstitial) aerosol tracers of interest: mass (q) mixing ratios
157157
const std::string int_mmr_field_name =
158158
mam_coupling::int_aero_mmr_field_name(mode, a);
159159
if(not int_mmr_field_name.empty()) {
160-
add_tracer<Updated>(int_mmr_field_name, grid_, q_unit, false);
160+
add_tracer<Updated>(int_mmr_field_name, grid_, q_unit, 1, true);
161161
}
162162
} // end for loop num species
163163
} // end for loop for num modes
@@ -169,7 +169,7 @@ void MAMGenericInterface::add_tracers_gases() {
169169
auto q_unit = kg / kg; // units of mass mixing ratios of tracers
170170
for(int g = 0; g < mam_coupling::num_aero_gases(); ++g) {
171171
const std::string gas_mmr_field_name = mam_coupling::gas_mmr_field_name(g);
172-
add_tracer<Updated>(gas_mmr_field_name, grid_, q_unit, true);
172+
add_tracer<Updated>(gas_mmr_field_name, grid_, q_unit);
173173
} // end for loop num gases
174174
}
175175
// ================================================================
@@ -333,19 +333,19 @@ void MAMGenericInterface::add_tracers_wet_atm() {
333333

334334
// atmospheric quantities
335335
// specific humidity [kg/kg]
336-
add_tracer<Required>("qv", grid_, q_unit, true);
336+
add_tracer<Required>("qv", grid_, q_unit);
337337

338338
// cloud liquid mass mixing ratio [kg/kg]
339-
add_tracer<Required>("qc", grid_, q_unit, true);
339+
add_tracer<Required>("qc", grid_, q_unit);
340340

341341
// cloud ice mass mixing ratio [kg/kg]
342-
add_tracer<Required>("qi", grid_, q_unit, true);
342+
add_tracer<Required>("qi", grid_, q_unit);
343343

344344
// cloud liquid number mixing ratio [1/kg]
345-
add_tracer<Required>("nc", grid_, n_unit, true);
345+
add_tracer<Required>("nc", grid_, n_unit);
346346

347347
// cloud ice number mixing ratio [1/kg]
348-
add_tracer<Required>("ni", grid_, n_unit, true);
348+
add_tracer<Required>("ni", grid_, n_unit);
349349
}
350350

351351
void MAMGenericInterface::add_fields_dry_atm() {

components/eamxx/src/physics/ml_correction/eamxx_ml_correction_process_interface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ void MLCorrection::set_grids(
6666
add_field<Updated>("precip_liq_surf_mass", scalar2d, kg/m2, grid_name);
6767
add_field<Updated>("precip_ice_surf_mass", scalar2d, kg/m2, grid_name);
6868
/* ----------------------- WARNING --------------------------------*/
69-
add_tracer<Updated>("qv", m_grid, kg/kg, true, ps);
69+
add_tracer<Updated>("qv", m_grid, kg/kg, ps);
7070
add_group<Updated>("tracers", grid_name, 1, true);
7171
}
7272

components/eamxx/src/physics/nudging/eamxx_nudging_process_interface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ void Nudging::set_grids(const std::shared_ptr<const GridsManager> grids_manager)
8383
add_field<Updated>("T_mid", scalar3d_layout_mid, K, grid_name, ps);
8484
}
8585
if (ekat::contains(m_fields_nudge,"qv")) {
86-
add_tracer<Updated>("qv", m_grid, kg/kg, true, ps);
86+
add_tracer<Updated>("qv", m_grid, kg/kg, ps);
8787
}
8888
if (ekat::contains(m_fields_nudge,"U") or ekat::contains(m_fields_nudge,"V")) {
8989
add_field<Updated>("horiz_winds", horiz_wind_layout, m/s, grid_name, ps);

components/eamxx/src/physics/p3/eamxx_p3_process_interface.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,15 @@ void P3Microphysics::set_grids(const std::shared_ptr<const GridsManager> grids_m
7676
add_field<Updated> ("T_mid", scalar3d_layout_mid, K, grid_name, ps); // T_mid is the only one of these variables that is also updated.
7777

7878
// Prognostic State: (all fields are both input and output)
79-
add_tracer<Updated>("qv", m_grid, kg/kg, true, ps);
80-
add_tracer<Updated>("qc", m_grid, kg/kg, true, ps);
81-
add_tracer<Updated>("qr", m_grid, kg/kg, true, ps);
82-
add_tracer<Updated>("qi", m_grid, kg/kg, true, ps);
83-
add_tracer<Updated>("qm", m_grid, kg/kg, true, ps);
84-
add_tracer<Updated>("nc", m_grid, 1/kg, true, ps);
85-
add_tracer<Updated>("nr", m_grid, 1/kg, true, ps);
86-
add_tracer<Updated>("ni", m_grid, 1/kg, true, ps);
87-
add_tracer<Updated>("bm", m_grid, 1/kg, true, ps);
79+
add_tracer<Updated>("qv", m_grid, kg/kg, ps);
80+
add_tracer<Updated>("qc", m_grid, kg/kg, ps);
81+
add_tracer<Updated>("qr", m_grid, kg/kg, ps);
82+
add_tracer<Updated>("qi", m_grid, kg/kg, ps);
83+
add_tracer<Updated>("qm", m_grid, kg/kg, ps);
84+
add_tracer<Updated>("nc", m_grid, 1/kg, ps);
85+
add_tracer<Updated>("nr", m_grid, 1/kg, ps);
86+
add_tracer<Updated>("ni", m_grid, 1/kg, ps);
87+
add_tracer<Updated>("bm", m_grid, 1/kg, ps);
8888

8989
// Diagnostic Inputs: (only the X_prev fields are both input and output, all others are just inputs)
9090
add_field<Required>("nc_nuceat_tend", scalar3d_layout_mid, 1/(kg*s), grid_name, ps);
@@ -346,7 +346,7 @@ void P3Microphysics::initialize_impl (const RunType /* run_type */)
346346
diag_inputs.cld_frac_r = p3_preproc.cld_frac_r;
347347
diag_inputs.dz = p3_preproc.dz;
348348
diag_inputs.inv_exner = p3_preproc.inv_exner;
349-
349+
350350
// Inputs for the heteogeneous freezing
351351
if (runtime_options.use_hetfrz_classnuc){
352352
diag_inputs.hetfrz_immersion_nucleation_tend = get_field_in("hetfrz_immersion_nucleation_tend").get_view<const Pack**>();

components/eamxx/src/physics/shoc/eamxx_shoc_process_interface.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void SHOCMacrophysics::set_grids(const std::shared_ptr<const GridsManager> grids
6161

6262
add_field<Updated>("surf_evap", scalar2d , kg/(m2*s), grid_name);
6363
add_field<Updated> ("T_mid", scalar3d_mid, K, grid_name, ps);
64-
add_tracer<Updated>("qv", m_grid, kg/kg, true, ps);
64+
add_tracer<Updated>("qv", m_grid, kg/kg, ps);
6565

6666
// If TMS is a process, add surface drag coefficient to required fields
6767
if (m_params.get<bool>("apply_tms", false)) {
@@ -79,8 +79,8 @@ void SHOCMacrophysics::set_grids(const std::shared_ptr<const GridsManager> grids
7979
add_field<Updated>("sgs_buoy_flux", scalar3d_mid, K*(m/s), grid_name, ps);
8080
add_field<Updated>("eddy_diff_mom", scalar3d_mid, m2/s, grid_name, ps);
8181
add_field<Updated>("cldfrac_liq", scalar3d_mid, nondim, grid_name, ps);
82-
add_tracer<Updated>("tke", m_grid, m2/s2, true, ps);
83-
add_tracer<Updated>("qc", m_grid, kg/kg, true, ps);
82+
add_tracer<Updated>("tke", m_grid, m2/s2, ps);
83+
add_tracer<Updated>("qc", m_grid, kg/kg, ps);
8484

8585
// Output variables
8686
add_field<Computed>("pbl_height", scalar2d , m, grid_name);

components/eamxx/src/physics/tms/eamxx_tms_process_interface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ void TurbulentMountainStress::set_grids(const std::shared_ptr<const GridsManager
5252
add_field<Required>("pseudo_density", scalar3d_mid, Pa, grid_name, ps);
5353
add_field<Required>("sgh30", scalar2d , m, grid_name);
5454
add_field<Required>("landfrac", scalar2d , nondim, grid_name);
55-
add_tracer<Required>("qv", m_grid, kg/kg, true, ps);
55+
add_tracer<Required>("qv", m_grid, kg/kg, ps);
5656

5757
add_field<Computed>("surf_drag_coeff_tms", scalar2d, kg/(m2*s), grid_name);
5858
add_field<Computed>("wind_stress_tms", vector2d, N/m2, grid_name);

0 commit comments

Comments
 (0)