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:
parent
4fe559ba3c
commit
a8a1d140d5
@ -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);
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"sections": [
|
"sections": [
|
||||||
"GRID"
|
"GRID"
|
||||||
],
|
],
|
||||||
"prohibits" : ["MINPV", "MINPVFIL"],
|
"prohibits" : ["MINPV"],
|
||||||
"size": 1,
|
"size": 1,
|
||||||
"items": [
|
"items": [
|
||||||
{
|
{
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"sections": [
|
"sections": [
|
||||||
"GRID"
|
"GRID"
|
||||||
],
|
],
|
||||||
"prohibits" : ["MINPORV", "MINPVFIL"],
|
"prohibits" : ["MINPORV"],
|
||||||
"size": 1,
|
"size": 1,
|
||||||
"items": [
|
"items": [
|
||||||
{
|
{
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
"sections": [
|
"sections": [
|
||||||
"GRID"
|
"GRID"
|
||||||
],
|
],
|
||||||
"prohibits" : ["MINPV", "MINPORV"],
|
|
||||||
"size": 1,
|
"size": 1,
|
||||||
"items": [
|
"items": [
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user