You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for (size_t ii=0; ii<export_constant_fields.size(); ii++) {
289
290
auto fname = export_constant_fields[ii];
290
291
// Find the index for this field in the list of export fields.
291
-
auto v_loc = std::find(m_export_field_names_vector.begin(),m_export_field_names_vector.end(),fname);
292
-
EKAT_REQUIRE_MSG(v_loc != m_export_field_names_vector.end(), "ERROR!! surface_coupling_exporter::init - prescribed_constants has field with name " << fname << " which can't be found in set of exported fields\n.");
293
-
auto idx = v_loc - m_export_field_names_vector.begin();
292
+
auto v_loc = std::find(m_export_field_names_vector.begin(),m_export_field_names_vector.end(),fname);
293
+
EKAT_REQUIRE_MSG(v_loc != m_export_field_names_vector.end(), "ERROR!! surface_coupling_exporter::init - prescribed_constants has field with name " << fname << " which can't be found in set of exported fields\n.");
294
+
auto idx = v_loc - m_export_field_names_vector.begin();
294
295
// This field should not have been set to anything else yet (recall FROM_MODEL is the default)
295
296
EKAT_REQUIRE_MSG(m_export_source_h(idx)==FROM_MODEL,"Error! surface_coupling_exporter::init - attempting to set field " + fname + " export type, which has already been set. Please check namelist options");
0 commit comments