Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added test/eclipse/gold/faulted_extract.e
Binary file not shown.
Binary file added test/eclipse/gold/simple_cube_extract_refine.e
Binary file not shown.
Binary file added test/eclipse/gold/simple_cube_include_extra.e
Binary file not shown.
Binary file added test/eclipse/gold/simple_cube_keywords_xrx.e
Binary file not shown.
47 changes: 47 additions & 0 deletions test/eclipse/simple_cube_include_extra.grdecl
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
-- 2x2x1 grid whose extra (--extra-keywords) property is defined in an INCLUDEd
-- file, not in this main file. Verifies that the extra_keywords list threads
-- through readEclipse's INCLUDE recursion.

SPECGRID
2 2 1 1 F /

GRIDUNIT
METRES /

COORD
0.000 0.000 0.000 0.000 0.000 1.000
1.000 0.000 0.000 1.000 0.000 1.000
2.000 0.000 0.000 2.000 0.000 1.000
0.000 1.000 0.000 0.000 1.000 1.000
1.000 1.000 0.000 1.000 1.000 1.000
2.000 1.000 0.000 2.000 1.000 1.000
0.000 2.000 0.000 0.000 2.000 1.000
1.000 2.000 0.000 1.000 2.000 1.000
2.000 2.000 0.000 2.000 2.000 1.000
/

ZCORN
0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0
1.0 1.0 1.0 1.0
1.0 1.0 1.0 1.0
1.0 1.0 1.0 1.0
1.0 1.0 1.0 1.0
/

ACTNUM
1 1 1 1
/

PORO
0.2 0.3 0.4 0.5
/

SATNUM
1 1 1 1
/

INCLUDE
simple_cube_include_extra_props.data /
7 changes: 7 additions & 0 deletions test/eclipse/simple_cube_include_extra_props.data
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- Extra property block read by simple_cube_include_extra.grdecl via INCLUDE.
-- PVTNUM is not a default-recognised keyword, so this file is silently
-- skipped unless the user passes --extra-keywords PVTNUM.

PVTNUM
1 2 3 4
/
32 changes: 32 additions & 0 deletions test/eclipse/tests
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,38 @@ simple_cube_keywords_extra:
cli_args: --extra-keywords MYTHING --
gold: simple_cube_keywords_extra.e

# Composition: extract runs first, then refine acts on the subset.
simple_cube_extract_refine:
filename: simple_cube_extract.grdecl
type: exodiff
cli_args: --extract-i 2 3 --extract-j 1 2 --extract-k 1 1 --refine-xy 2 2
gold: simple_cube_extract_refine.e

# Both extract and refine correctly handle --extra-keywords (and the
# NTG/HEATCR/THCONR defaults pass through too).
simple_cube_keywords_xrx:
filename: simple_cube_keywords.grdecl
type: exodiff
cli_args: --extract-j 1 1 --refine-xy 2 1 --extra-keywords MYTHING --
gold: simple_cube_keywords_xrx.e

# Extra keyword PVTNUM is defined in the INCLUDEd .data file rather than the
# main grdecl. Verifies extra_keywords threads through readEclipse's recursion.
simple_cube_include_extra:
filename: simple_cube_include_extra.grdecl
type: exodiff
cli_args: --extra-keywords PVTNUM --
gold: simple_cube_include_extra.e

# Extract from the faulted grid, keeping the central fault region. The output
# has 120 nodes vs. 100 for an equivalent no-fault extract (4*4*3=48 cells),
# i.e. the 20 duplicated nodes at the fault corners survive the slice.
faulted_extract:
filename: faulted.grdecl
type: exodiff
cli_args: --extract-i 4 7 --extract-j 4 7 --extract-k 2 4
gold: faulted_extract.e

missing_specgrid:
filename: missing_specgrid.grdecl
type: exception
Expand Down
Loading