Added fully defaulted EQLDIMS & TABDIMS

For some keywords the number of records is given as an item of another
keyword, the EQUIL keyword is a prime example of such behaviour - where
the number of records (i.e. equilibration regions) is given by the
NTEQUL item of EQLDIMS keyword.

If the defining keyword (i.e. EQLDIMS in the case of EQUIL) is missing
from the deck the parser can use the default values from the defining
keyword, but this is still potentially a problem and in the strictest
mode the parser will throw an exception. This is governed by the
ParseMode::missingDIMSKeyword flag.

With this commit the decks will go through the parser without any error
detected.
This commit is contained in:
Joakim Hove 2015-08-04 17:34:22 +02:00
parent cd94f50abb
commit b3d1c4ff77
5 changed files with 32 additions and 0 deletions

View File

@ -23,6 +23,16 @@ TITLE
DIMENS
10 10 3 /
-- The number of equilibration regions is inferred from the EQLDIMS
-- keyword.
EQLDIMS
/
-- The number of PVTW tables is inferred from the TABDIMS keyword;
-- when no data is included in the keyword the default values are used.
TABDIMS
/
OIL
GAS
WATER

View File

@ -23,6 +23,17 @@ TITLE
DIMENS
10 10 3 /
-- The number of equilibration regions is inferred from the EQLDIMS
-- keyword.
EQLDIMS
/
-- The number of PVTW tables is inferred from the TABDIMS keyword;
-- when no data is included in the keyword the default values are used.
TABDIMS
/
OIL
GAS
WATER

View File

@ -49,6 +49,10 @@ TABDIMS
-- exceeds the default -> item 3 and 4 in TABDIMS must be changed
1* 1* 30 30 /
EQLDIMS
/
UNIFOUT
GRID

View File

@ -49,6 +49,10 @@ TABDIMS
-- exceeds the default -> item 3 and 4 in TABDIMS must be changed
1* 1* 30 30 /
EQLDIMS
/
UNIFOUT
GRID

View File

@ -63,6 +63,9 @@ TABDIMS
-- so item 3 in this keyword must be changed:
1* 1* 40 /
EQLDIMS
/
--NSTACK
-- 25 /
-- Eclipse suggested increasing NSTACK