Files
opm-common/README.md

33 lines
743 B
Markdown
Raw Normal View History

2016-11-24 10:12:43 +01:00
# sunbeam ![build status](https://travis-ci.org/Statoil/sunbeam.svg?branch=master "TravisCI Build Status")
# Quick start (WIP)
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
cd sunbeam
mkdir build
cd build
cmake .. -DCMAKE_MODULE_PATH=$OPM_COMMON_ROOT/cmake/Modules
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
```
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`.