We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a348d8 commit 52ded65Copy full SHA for 52ded65
components/eamxx/src/share/io/eamxx_io_utils.cpp
@@ -252,7 +252,11 @@ parse_field_alias (const std::string& field_spec)
252
EKAT_REQUIRE_MSG(!alias.empty() && !field_name.empty(),
253
"Error! Invalid field alias specification: '" + field_spec + "'\n"
254
"Expected format: 'alias:=field_name' where both alias and field_name are non-empty.\n");
255
-
+
256
+ auto another_pos = field_name.find(delimiter);
257
+ EKAT_REQUIRE_MSG(another_pos == std::string::npos,
258
+ "Error! Invalid field alias specification: '" + field_spec + "'\n"
259
+ "Multiple ':=' tokens found.\n");
260
return {alias, field_name};
261
}
262
0 commit comments