Skip to content

Commit 79eca39

Browse files
Use 2D to fetch diagnostics rather than subviewing
1 parent de3b565 commit 79eca39

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ void MAMMicrophysics::initialize_impl(const RunType run_type) {
541541
"mam4_microphysics_tendency_renaming_cloud_borne",
542542
};
543543
// Add docstring to the fields with mixed units
544-
//add_io_docstring_to_fields_with_mixed_units(mixed_units_fields);
544+
add_io_docstring_to_fields_with_mixed_units(mixed_units_fields);
545545
}
546546

547547

@@ -702,10 +702,6 @@ void MAMMicrophysics::run_impl(const double dt) {
702702
aqso4_incloud_mmr_tendency = get_field_out("mam4_microphysics_tendency_aqso4").get_view<Real ***>();
703703
aqh2so4_incloud_mmr_tendency = get_field_out("mam4_microphysics_tendency_aqh2so4").get_view<Real ***>();
704704
gas_aero_exchange_condensation = get_field_out("mam4_microphysics_tendency_condensation").get_view<Real***>();
705-
printf("BALLI-extents gas_aero_exchange_condensation: %d %d %d\n",
706-
gas_aero_exchange_condensation.extent(0),
707-
gas_aero_exchange_condensation.extent(1),
708-
gas_aero_exchange_condensation.extent(2));
709705
gas_aero_exchange_renaming = get_field_out("mam4_microphysics_tendency_renaming").get_view<Real***>();
710706
gas_aero_exchange_nucleation = get_field_out("mam4_microphysics_tendency_nucleation").get_view<Real***>();
711707
gas_aero_exchange_coagulation = get_field_out("mam4_microphysics_tendency_coagulation").get_view<Real***>();
@@ -962,12 +958,10 @@ void MAMMicrophysics::run_impl(const double dt) {
962958
diag_arrays.aqh2so4_incloud_mmr_tendency = ekat::subview(aqh2so4_incloud_mmr_tendency, icol);
963959

964960
diag_arrays.gas_aero_exchange_condensation = ekat::subview(gas_aero_exchange_condensation, icol);
965-
#if 0
966961
diag_arrays.gas_aero_exchange_renaming = ekat::subview(gas_aero_exchange_renaming, icol);
967962
diag_arrays.gas_aero_exchange_nucleation = ekat::subview(gas_aero_exchange_nucleation, icol);
968963
diag_arrays.gas_aero_exchange_coagulation = ekat::subview(gas_aero_exchange_coagulation, icol);
969964
diag_arrays.gas_aero_exchange_renaming_cloud_borne = ekat::subview(gas_aero_exchange_renaming_cloud_borne, icol);
970-
#endif
971965
}
972966

973967

externals/mam4xx

0 commit comments

Comments
 (0)