Update EclipseGrid and JSON Definitions

Update EclipseGrid with checks for MINPVFIL. For JSON definitions: remove MINPVFIL check in MINPV and MINPORV, and all checks from MINPVFIL.
This commit is contained in:
OPMUSER 2022-07-12 11:07:10 +08:00
parent 4fe559ba3c
commit a8a1d140d5
4 changed files with 8 additions and 3 deletions

View File

@ -344,6 +344,12 @@ EclipseGrid::EclipseGrid(const Deck& deck, const int * actnum)
m_pinchGapMode = PinchMode::PinchModeFromString(pinchGapString); m_pinchGapMode = PinchMode::PinchModeFromString(pinchGapString);
} }
if (deck.hasKeyword<ParserKeywords::MINPV>() && deck.hasKeyword<ParserKeywords::MINPVFIL>()) {
throw std::invalid_argument("Can not have both MINPV and MINPVFIL in the deck.");
} else if(deck.hasKeyword<ParserKeywords::MINPORV>() && deck.hasKeyword<ParserKeywords::MINPVFIL>()) {
throw std::invalid_argument("Can not have both MINPORV and MINPVFIL in the deck.");
}
m_minpvVector.resize(getCartesianSize(), 0.0); m_minpvVector.resize(getCartesianSize(), 0.0);
if (deck.hasKeyword<ParserKeywords::MINPV>()) { if (deck.hasKeyword<ParserKeywords::MINPV>()) {
const auto& record = deck.get<ParserKeywords::MINPV>( ).back().getRecord(0); const auto& record = deck.get<ParserKeywords::MINPV>( ).back().getRecord(0);

View File

@ -3,7 +3,7 @@
"sections": [ "sections": [
"GRID" "GRID"
], ],
"prohibits" : ["MINPV", "MINPVFIL"], "prohibits" : ["MINPV"],
"size": 1, "size": 1,
"items": [ "items": [
{ {

View File

@ -3,7 +3,7 @@
"sections": [ "sections": [
"GRID" "GRID"
], ],
"prohibits" : ["MINPORV", "MINPVFIL"], "prohibits" : ["MINPORV"],
"size": 1, "size": 1,
"items": [ "items": [
{ {

View File

@ -3,7 +3,6 @@
"sections": [ "sections": [
"GRID" "GRID"
], ],
"prohibits" : ["MINPV", "MINPORV"],
"size": 1, "size": 1,
"items": [ "items": [
{ {