adding FLD to the ControlEnum of GroupProduction

This commit is contained in:
Kai Bao
2016-09-20 13:37:07 +02:00
parent 09499a7c79
commit a4c2c5bec3
2 changed files with 6 additions and 1 deletions

View File

@@ -185,6 +185,8 @@ namespace Opm {
return "RESV";
case PRBL:
return "PRBL";
case FLD:
return "FLD";
default:
throw std::invalid_argument("Unhandled enum value");
}
@@ -208,6 +210,8 @@ namespace Opm {
return RESV;
else if (stringValue == "PRBL")
return PRBL;
else if (stringValue == "FLD")
return FLD;
else
throw std::invalid_argument("Unknown enum state string: " + stringValue );
}

View File

@@ -190,7 +190,8 @@ namespace Opm {
LRAT = 4,
CRAT = 5,
RESV = 6,
PRBL = 7
PRBL = 7,
FLD = 8
};
const std::string ControlEnum2String( GroupProduction::ControlEnum enumValue );