mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-21 16:57:25 -06:00
30 lines
920 B
Bash
Executable File
30 lines
920 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Clone opm-data if necessary
|
|
if ! test -d deps/opm-data
|
|
then
|
|
OPM_DATA_REVISION="master"
|
|
if grep -q "opm-data=" <<< $ghprbCommentBody
|
|
then
|
|
OPM_DATA_REVISION=pull/`echo $ghprbCommentBody | sed -r 's/.*opm-data=([0-9]+).*/\1/g'`/merge
|
|
fi
|
|
source $WORKSPACE/deps/opm-common/jenkins/build-opm-module.sh
|
|
echo "grabbing opm-data rev $OPM_DATA_REVISION"
|
|
clone_module opm-data $OPM_DATA_REVISION
|
|
fi
|
|
|
|
pushd .
|
|
cd deps/opm-data
|
|
|
|
# Run the simple2D polymer case
|
|
cd polymer_test_suite/simple2D
|
|
$WORKSPACE/serial/build-opm-autodiff/bin/flow_polymer run.param
|
|
test $? -eq 0 || exit 1
|
|
cd ../..
|
|
|
|
# Compare OPM with eclipse reference
|
|
PYTHONPATH=$WORKSPACE/serial/install/lib/python2.7/dist-packages/ python output_comparator/src/compare_eclipse.py polymer_test_suite/simple2D/eclipse-simulation/ polymer_test_suite/simple2D/opm-simulation/ 2D_THREEPHASE_POLY_HETER 0.0006 0.004
|
|
test $? -eq 0 || exit 1
|
|
|
|
popd
|