File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
components/eamxx/src/share/io Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 5
5
#include " share/util/eamxx_utils.hpp"
6
6
#include " share/eamxx_config.hpp"
7
7
8
- #include " ekat/util/ ekat_string_utils.hpp"
8
+ #include < ekat_string_utils.hpp>
9
9
10
10
#include < fstream>
11
11
#include < regex>
@@ -252,7 +252,11 @@ parse_field_alias (const std::string& field_spec)
252
252
EKAT_REQUIRE_MSG (!alias.empty () && !field_name.empty (),
253
253
" Error! Invalid field alias specification: '" + field_spec + " '\n "
254
254
" Expected format: 'alias:=field_name' where both alias and field_name are non-empty.\n " );
255
-
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 " );
256
260
return {alias, field_name};
257
261
}
258
262
You can’t perform that action at this time.
0 commit comments