compareECL1
Comparator for eclipse files
Usage
convertECL [OPTIONS]
ECL_DECK_FILENAME_1
ECL_DECK_FILENAME_2
ABSOLUTE_TOLERANCE
RELATIVE_TOLERANCE
Overview
compareECL compares ECLIPSE files (restart (.RST), unified restart (.UNRST), initial (.INIT), summary (.SMRY), unified summary (.UNSMRY) or .RFT) and gridsizes (from .EGRID or .GRID file) from two simulations. The program takes four arguments:
- ECL_DECK_FILENAME_1, path to first reference case, but without extension. - ECL_DECK_FILENAME_2, path to second reference case, but without extension. - ABSOLUTE_TOLERANCE, the absolute tolerance to use for coparison - RELATIVE_TOLERANCE, the relative tolerance (between 0 and 1) to use for comparison
Options
In addition, the program takes these options (which must be given before the arguments):
-a Run a full analysis of errors.
-hPrint help and exit.
-dUse report steps only when comparing results from summary files.
-iExecute integration test (regression test is default).
-
The integration test compares SGAS, SWAT and PRESSURE in unified restart files, and WOPR, WGPR, WWPR and WBHP (all wells) in summary file.
-k Specify specific keyword to compare (capitalized), for examples -k PRESSURE or -k WOPR:A-1H
-lOnly do comparison for the last Report Step. This option is only valid for restart files.
-nDo not throw on errors.
-pPrint keywords in both cases and exit.
-rcompare a specific report time step number in a restart file.
-tSpecify ECLIPSE filetype to compare, (default behaviour is that all files are compared if found). Different possible arguments are:
-
-tUNRST Compare two unified restart files (.UNRST). This the default value, so it is the same as not passing option-t.
-
-tEGRID Compare two EGrid files (.EGRID).
-
-tINIT Compare two initial files (.INIT).
-
-tRFT Compare two RFT files (.RFT).
-
-tSMRY Compare two cases consistent of (unified) summary files.
-
-tRSM Compare RSM file against a summary file.
-x Allow extra keywords in case number 2. These additional keywords (not found in case number1) will be ignored in the comparison.
-y Allow extra keywords for both cases. The additional keywords will be ignored in the comparison.
Example usage of the program:
compareECL -k PRESSURE <path to first casefile> <path to second casefile> 1e-3 1e-5
compareECL -t INIT -k PORO <path to first casefile> <path to second casefile> 1e-3 1e-5
compareECL -i <path to first casefile> <path to second casefile> 0.01 1e-6
Exceptions are thrown (and hence program exits) when deviations are larger than the specified tolerances, or when the number of cells does not match -- either in the grid file or for a specific keyword. Information about the keyword, keyword occurrence (zero based) and cell coordinate is printed when an exception is thrown. For more information about how the cases are compared, see the documentation of the EclFilesComparator class.
History
- Debian 13 (Trixie): the text shown here
- Debian 12 (Bookworm)