2016-11-24 10:12:43 +01:00
|
|
|
# sunbeam 
|
|
|
|
|
|
2016-11-25 14:45:52 +01:00
|
|
|
# Quick start (WIP)
|
2016-11-25 15:29:36 +01:00
|
|
|
Assumes you have built (and maybe installed) opm-parser
|
2017-02-09 14:46:21 +01:00
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
git clone --recursive https://github.com/statoil/sunbeam
|
2016-11-25 14:45:52 +01:00
|
|
|
cd sunbeam
|
|
|
|
|
mkdir build
|
|
|
|
|
cd build
|
2016-11-25 15:29:36 +01:00
|
|
|
cmake .. -DCMAKE_MODULE_PATH=$OPM_COMMON_ROOT/cmake/Modules
|
2016-11-25 14:45:52 +01:00
|
|
|
make
|
2017-02-09 14:46:21 +01:00
|
|
|
ctest # for running unit tests
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
# Obtaining test data
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
cd ~
|
|
|
|
|
git clone https://github.com/OPM/opm-data
|
|
|
|
|
cd opm-data/norne
|
2016-11-25 14:45:52 +01:00
|
|
|
```
|
2017-02-09 14:46:21 +01:00
|
|
|
|
|
|
|
|
With `opm-data` available, one can test sunbeam on Norne:
|
|
|
|
|
|
|
|
|
|
```python
|
|
|
|
|
import sunbeam
|
|
|
|
|
es = sunbeam.parse('NORNE_ATW2013.DATA', ('PARSE_RANDOM_SLASH', sunbeam.action.ignore))
|
|
|
|
|
len(es.faults())
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Remember to have `~/sunbeam/build/python` in your `$PYTHONPATH`.
|