libecl
Project description
libecl ![Build Status](https://pypi-camo.freetls.fastly.net/4b416d9cbd67a17ccc25ebca447c476d972a0340/68747470733a2f2f7472617669732d63692e6f72672f537461746f696c2f6c696265636c2e7376673f6272616e63683d6d6173746572)
libecl is a package for reading and writing the result files from the Eclipse reservoir simulator. The file types covered are the restart, init, rft, summary and grid files. Both unified and non-unified and formatted and unformatted files are supported.
libecl is mainly developed on Linux and OS X, in addition there is a portability layer which ensures that most of the functionality is available on Windows. The main functionality is written in C, and should typically be linked in in other compiled programs. libecl was initially developed as part of the Ensemble Reservoir Tool, other applications using libecl are the reservoir simulator flow and Resinsight from the OPM project.
In addition to the C code there are Python wrappers which make most of the libecl functionality available from Python. For small interactive scripts, forward models e.t.c. this is recommended way to use libecl functionality.
Compiling the C code
libecl uses CMake as build system:
git clone https://github.com/Statoil/libecl.git
cd libecl
mkdir build
cd build
cmake ..
make
If you intend to develop and change libecl you should build the tests
by passing -DBUILD_TESTS=ON
and run the tests with ctest
.
Compiling the Python code
Python is not a compiled language, but there is a basic "build system" which does a basic Python syntax check and configures some files to correctly set up the interaction between the Python classes and the shared libraries built from the C code.
You need to install some Python requirements before the Python code will work:
sudo pip install -r requirements.txt
The Python + cmake interaction is handled in a separate project called
pycmake; you can either install
that manually or use the git submodule functionality to fetch the
correct version of pycmake
into your libecl code:
git submodule update --init pycmake
Installing the Python code
* pip install .
* check with: source python/check_python
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for dhan16opm_libecl-0.1.2-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 189003540870da70670b98209be83af83c13886b2fccb2456572b630382a0e70 |
|
MD5 | 25de974f1a233b7127b9659cad0c44ca |
|
BLAKE2b-256 | 9ceba71baec513274e918991029d8e3775749308d762d2b47cff956f2e06020d |