87 explicit ParseContext(InputErrorAction default_action);
88 explicit ParseContext(
const std::vector<std::pair<std::string , InputErrorAction>>& initial);
90 void handleError(
const std::string& errorKey,
const std::string& msg,
const std::optional<KeywordLocation>& location,
ErrorGuard& errors)
const;
91 void handleUnknownKeyword(
const std::string& keyword,
const std::optional<KeywordLocation>& location,
ErrorGuard& errors)
const;
92 bool hasKey(
const std::string& key)
const;
93 ParseContext withKey(
const std::string& key, InputErrorAction action)
const;
94 ParseContext& withKey(
const std::string& key, InputErrorAction action);
95 void updateKey(
const std::string& key , InputErrorAction action);
96 void update(InputErrorAction action);
97 void update(
const std::string& keyString , InputErrorAction action);
98 void ignoreKeyword(
const std::string& keyword);
99 InputErrorAction get(
const std::string& key)
const;
100 std::map<std::string,InputErrorAction>::const_iterator begin()
const;
101 std::map<std::string,InputErrorAction>::const_iterator end()
const;
108 void addKey(
const std::string& key, InputErrorAction default_action);
126 const static std::string PARSE_EXTRA_RECORDS;
150 const static std::string PARSE_UNKNOWN_KEYWORD;
156 const static std::string PARSE_RANDOM_TEXT;
163 const static std::string PARSE_RANDOM_SLASH;
178 const static std::string PARSE_MISSING_DIMS_KEYWORD;
188 const static std::string PARSE_EXTRA_DATA;
195 const static std::string PARSE_MISSING_INCLUDE;
203 const static std::string PARSE_INVALID_KEYWORD_COMBINATION;
238 const static std::string PARSE_LONG_KEYWORD;
244 const static std::string UNIT_SYSTEM_MISMATCH;
252 const static std::string UNSUPPORTED_INITIAL_THPRES;
259 const static std::string UNSUPPORTED_TERMINATE_IF_BHP;
261 const static std::string UDQ_PARSE_ERROR;
262 const static std::string UDQ_TYPE_ERROR;
275 const static std::string INTERNAL_ERROR_UNINITIALIZED_THPRES;
281 const static std::string PARSE_MISSING_SECTIONS;
290 const static std::string PARSE_WGNAME_SPACE;
296 const static std::string SUMMARY_UNKNOWN_WELL;
297 const static std::string SUMMARY_UNKNOWN_GROUP;
298 const static std::string SUMMARY_UNKNOWN_NODE;
299 const static std::string SUMMARY_UNKNOWN_AQUIFER;
300 const static std::string SUMMARY_UNHANDLED_KEYWORD;
301 const static std::string SUMMARY_UNDEFINED_UDQ;
302 const static std::string SUMMARY_UDQ_MISSING_UNIT;
303 const static std::string SUMMARY_INVALID_FIPNUM;
304 const static std::string SUMMARY_EMPTY_REGION;
305 const static std::string SUMMARY_REGION_TOO_LARGE;
311 const static std::string SCHEDULE_INVALID_NAME;
319 const static std::string ACTIONX_ILLEGAL_KEYWORD;
320 const static std::string PYACTION_ILLEGAL_KEYWORD;
325 const static std::string ACTIONX_CONDITION_ERROR;
329 const static std::string ACTIONX_NO_CONDITION;
361 const static std::string RPT_MIXED_STYLE;
363 const static std::string RPT_UNKNOWN_MNEMONIC;
365 const static std::string SCHEDULE_GROUP_ERROR;
366 const static std::string SCHEDULE_IGNORED_GUIDE_RATE;
367 const static std::string SCHEDULE_WELL_IN_FIELD_GROUP;
369 const static std::string SCHEDULE_COMPSEGS_INVALID;
370 const static std::string SCHEDULE_COMPSEGS_NOT_SUPPORTED;
372 const static std::string SCHEDULE_COMPDAT_INVALID;
379 const static std::string SIMULATOR_KEYWORD_NOT_SUPPORTED;
380 const static std::string SIMULATOR_KEYWORD_NOT_SUPPORTED_CRITICAL;
381 const static std::string SIMULATOR_KEYWORD_ITEM_NOT_SUPPORTED;
382 const static std::string SIMULATOR_KEYWORD_ITEM_NOT_SUPPORTED_CRITICAL;
384 void setInputSkipMode(
const std::string& skip_mode);
385 bool isActiveSkipKeyword(
const std::string& deck_name)
const;
390 void envUpdate(
const std::string& envVariable , InputErrorAction action );
391 void patternUpdate(
const std::string& pattern , InputErrorAction action);
393 std::map<std::string , InputErrorAction> m_errorContexts;
394 std::set<std::string> ignore_keywords;
395 std::string m_input_skip_mode{
"100"};
static const std::string RUNSPEC_NUMMSW_TOO_LARGE
Dynamic number of multi-segmented wells exceeds maximum declared in RUNSPEC keyword WSEGDIMS (item 1)...
Definition ParseContext.hpp:223
static const std::string UDQ_DEFINE_CANNOT_EVAL
Cannot evaluate the defining expression of a UDQ at the point of definition due to missing objects,...
Definition ParseContext.hpp:266
static const std::string RUNSPEC_NUMWELLS_TOO_LARGE
Dynamic number of wells exceeds maximum declared in RUNSPEC keyword WELLDIMS (item 1).
Definition ParseContext.hpp:207
static const std::string RUNSPEC_CONNS_PER_WELL_TOO_LARGE
Dynamic number of connections per well exceeds maximum declared in RUNSPEC keyword WELLDIMS (item 2).
Definition ParseContext.hpp:211
static const std::string RUNSPEC_NUMBRANCH_TOO_LARGE
Dynamic number of branches exceeds maximum number declared in RUNSPEC keyword WSEGDIMS (item 3).
Definition ParseContext.hpp:231
static const std::string RUNSPEC_GROUPSIZE_TOO_LARGE
Dynamic group size exceeds maximum number declared in RUNSPEC keyword WELLDIMS (item 4).
Definition ParseContext.hpp:219
static const std::string RUNSPEC_NUMGROUPS_TOO_LARGE
Dynamic number of groups exceeds maximum number declared in RUNSPEC keyword WELLDIMS (item 3).
Definition ParseContext.hpp:215
static const std::string RUNSPEC_NUMSEG_PER_WELL_TOO_LARGE
Dynamic number of segments per MS well exceeds maximum declared in RUNSPEC keyword WSEGDIMS (item 2).
Definition ParseContext.hpp:227