Common components for OPM, in particular build system (cmake).
When encountering these (e.g. a number instead of an expression on the left hand side) the simulator would immediately abort with an error message like: ``` Error: An error occurred while creating the reservoir schedule Internal error: Extra unhandled data starting with token[0] = 135 Error: Unrecoverable errors while loading input: Extra unhandled data starting with token[0] = 135 ``` (The message above is for the number 135 on the left hand side) With this change we now use the usual way of handling errors and warnings in the parser and continue parsing. The error message for the problem above is now ``` Error: condition of action EX1 has the following error: Left side of comparsion (135) has to be an expression! Error: Problem with keyword ACTIONX In model.schedule line 562 condition of action EX1 has the following error: Left side of comparsion (135) has to be an expression! Error: Unrecoverable errors while loading input: Problem with keyword ACTIONX In model.schedule line 562 condition of action EX1 has the following error: Left side of comparsion (135) has to be an expression! |
||
---|---|---|
bin | ||
cmake | ||
docs | ||
etc | ||
examples | ||
external | ||
jenkins | ||
msim | ||
opm | ||
python | ||
src/opm | ||
test_util | ||
tests | ||
.clang-format | ||
.gitignore | ||
.gitmodules | ||
changelog.md | ||
CMakeLists_files.cmake | ||
CMakeLists.txt | ||
CopyHeaders.cmake | ||
dune.module | ||
ExtraTests.cmake | ||
GenerateKeywords.cmake | ||
LICENSE | ||
opm-common-prereqs.cmake | ||
README.md |
opm-common: Tools for Eclipse reservoir simulation files
The Open Porous Media (OPM) software suite provides libraries and tools for modeling and simulation of porous media processes, especially for simulating CO2 sequestration and improved and enhanced oil recovery. The Eclipse file format is widely used in the reservoir simulation community. This package provides a library containing code for processing files in Eclipse format, Python binding for accessing Eclipse files and utility code used by other OPM modules (e.g. CMake modules used).
License
The library is distributed under the GNU General Public License, version 3 or later (GPLv3+).
Requirements
- C++17 compatible compiler
- CMake >= 3.10
- Posix compatibility