ParseMode::INTERNAL_ERROR_UNINITIALZIED_THPRES

This commit is contained in:
Joakim Hove 2015-08-25 10:05:04 +02:00
parent 3ee3c023e6
commit e1e2487d5d
2 changed files with 14 additions and 0 deletions

View File

@ -66,6 +66,7 @@ namespace Opm {
addKey(UNSUPPORTED_SCHEDULE_GEO_MODIFIER);
addKey(UNSUPPORTED_COMPORD_TYPE);
addKey(UNSUPPORTED_INITIAL_THPRES);
addKey(INTERNAL_ERROR_UNINITIALIZED_THPRES);
}
void ParseMode::initEnv() {
@ -206,9 +207,12 @@ namespace Opm {
const std::string ParseMode::PARSE_RANDOM_TEXT = "PARSE_RANDOM_TEXT";
const std::string ParseMode::PARSE_RANDOM_SLASH = "PARSE_RANDOM_SLASH";
const std::string ParseMode::PARSE_MISSING_DIMS_KEYWORD = "PARSE_MISSING_DIMS_KEYWORD";
const std::string ParseMode::UNSUPPORTED_SCHEDULE_GEO_MODIFIER = "UNSUPPORTED_SCHEDULE_GEO_MODIFIER";
const std::string ParseMode::UNSUPPORTED_COMPORD_TYPE = "UNSUPPORTED_COMPORD_TYPE";
const std::string ParseMode::UNSUPPORTED_INITIAL_THPRES = "UNSUPPORTED_INITIAL_THPRES";
const std::string ParseMode::INTERNAL_ERROR_UNINITIALIZED_THPRES = "INTERNAL_ERROR_UNINITIALIZED_THPRES";
}

View File

@ -171,6 +171,16 @@ namespace Opm {
*/
const static std::string UNSUPPORTED_INITIAL_THPRES;
/*
If the third item in the THPRES keyword is defaulted the
threshold pressure is inferred from the initial pressure -
if you still ask the ThresholdPressure instance for a
pressure value this error will be signalled. this currently
not supported.
*/
const static std::string INTERNAL_ERROR_UNINITIALIZED_THPRES;
private:
void initDefault();
void initEnv();