Skip to content

Commit

Permalink
post-rebase variable name correction
Browse files Browse the repository at this point in the history
  • Loading branch information
mjs271 committed Dec 19, 2024
1 parent ddb61aa commit ef142bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/eamxx/src/control/atmosphere_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,7 @@ void AtmosphereDriver::set_initial_conditions ()
// Check which fields need to have an initial condition.
std::map<std::string,std::vector<std::string>> ic_fields_names;
std::vector<FieldIdentifier> ic_fields_to_copy;
std::map<std::string,std::vector<std::string>> fields_inited;
// std::map<std::string,std::vector<std::string>> m_fields_inited;

// Check which fields should be loaded from the topography file
std::map<std::string,std::vector<std::string>> topography_file_fields_names;
Expand Down Expand Up @@ -1129,7 +1129,7 @@ void AtmosphereDriver::set_initial_conditions ()
EKAT_ERROR_MSG ("ERROR: invalid assignment for variable " + fname + ", only scalar "
"double or string, or vector double arguments are allowed");
}
fields_inited[grid_name].push_back(fname);
m_fields_inited[grid_name].push_back(fname);
} else if (fname == "phis" or fname == "sgh30") {
// Both phis and sgh30 need to be loaded from the topography file
auto& this_grid_topo_file_fnames = topography_file_fields_names[grid_name];
Expand Down Expand Up @@ -1232,7 +1232,7 @@ void AtmosphereDriver::set_initial_conditions ()
auto p = f.get_header().get_parent().lock();
if (p) {
const auto& pname = p->get_identifier().name();
if (ekat::contains(fields_inited[grid_name],pname)) {
if (ekat::contains(m_fields_inited[grid_name],pname)) {
// The parent is already inited. No need to init this field as well.
names.erase(it2);
run_again = true;
Expand Down Expand Up @@ -1454,7 +1454,7 @@ void AtmosphereDriver::set_initial_conditions ()
// Loop through fields and apply perturbation.
for (size_t f=0; f<perturbed_fields.size(); ++f) {
const auto fname = perturbed_fields[f];
EKAT_REQUIRE_MSG(ekat::contains(fields_inited[fm->get_grid()->name()], fname),
EKAT_REQUIRE_MSG(ekat::contains(m_fields_inited[fm->get_grid()->name()], fname),
"Error! Attempting to apply perturbation to field not in initial_conditions.\n"
" - Field: "+fname+"\n"
" - Grid: "+fm->get_grid()->name()+"\n");
Expand Down

0 comments on commit ef142bc

Please sign in to comment.