From 7387fe260400e005ff2b997db37632b6b89b719a Mon Sep 17 00:00:00 2001 From: Luca Bertagna Date: Wed, 15 May 2024 17:50:59 -0600 Subject: [PATCH] EAMxx: fix usage of ekat's Units --- .../eamxx/src/share/atm_process/atmosphere_process_dag.cpp | 2 +- components/eamxx/src/share/field/field_identifier.cpp | 2 +- components/eamxx/src/share/io/scorpio_output.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/eamxx/src/share/atm_process/atmosphere_process_dag.cpp b/components/eamxx/src/share/atm_process/atmosphere_process_dag.cpp index a77dd6e4c56..7b6fc218a0b 100644 --- a/components/eamxx/src/share/atm_process/atmosphere_process_dag.cpp +++ b/components/eamxx/src/share/atm_process/atmosphere_process_dag.cpp @@ -146,7 +146,7 @@ void AtmProcDAG::write_dag (const std::string& fname, const int verbosity) const s.back() = ')'; if (verbosity>2) { - s += " [" + fid.get_units().get_string() + "]"; + s += " [" + fid.get_units().to_string() + "]"; } } return s; diff --git a/components/eamxx/src/share/field/field_identifier.cpp b/components/eamxx/src/share/field/field_identifier.cpp index 56974aa0696..7430ffa892e 100644 --- a/components/eamxx/src/share/field/field_identifier.cpp +++ b/components/eamxx/src/share/field/field_identifier.cpp @@ -48,7 +48,7 @@ void FieldIdentifier::update_identifier () { m_identifier += ">"; m_identifier += "(" + ekat::join(m_layout.dims(),",") + ")"; - m_identifier += " [" + m_units.get_string() + "]"; + m_identifier += " [" + m_units.to_string() + "]"; } // Free functions for identifiers comparison diff --git a/components/eamxx/src/share/io/scorpio_output.cpp b/components/eamxx/src/share/io/scorpio_output.cpp index 3db201f424b..1852785eeac 100644 --- a/components/eamxx/src/share/io/scorpio_output.cpp +++ b/components/eamxx/src/share/io/scorpio_output.cpp @@ -953,7 +953,7 @@ register_variables(const std::string& filename, // in the simulation and not the one used in the output file. const auto& layout = fid.get_layout(); auto vec_of_dims = set_vec_of_dims(layout); - std::string units = fid.get_units().get_string(); + std::string units = fid.get_units().to_string(); // Gather longname auto longname = m_longnames.get_longname(name);