2016-04-05 01:40:55 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
2016-11-03 03:09:06 -05:00
|
|
|
function dotest {
|
|
|
|
$compareECL $reffile $opmfile 1.0 $1 -k SGAS
|
|
|
|
test $? -eq 0 || exit 1
|
|
|
|
$compareECL $reffile $opmfile $2 1.0 -k SWAT
|
|
|
|
test $? -eq 0 || exit 1
|
|
|
|
$compareECL $reffile $opmfile $2 1.0 -k PRESSURE
|
|
|
|
test $? -eq 0 || exit 1
|
|
|
|
}
|
|
|
|
|
2016-04-06 03:15:54 -05:00
|
|
|
pushd .
|
2018-04-03 01:26:18 -05:00
|
|
|
cd deps/opm-tests
|
2016-04-05 01:40:55 -05:00
|
|
|
|
2017-04-10 05:27:19 -05:00
|
|
|
EXE=flow_legacy
|
|
|
|
|
2016-04-05 01:40:55 -05:00
|
|
|
# Run the SPE1/3/9 cases
|
|
|
|
cd spe1
|
2018-08-17 02:38:06 -05:00
|
|
|
$WORKSPACE/$configuration/build-opm-simulators/bin/${EXE} SPE1CASE2.DATA
|
2016-04-05 01:40:55 -05:00
|
|
|
test $? -eq 0 || exit 1
|
|
|
|
cd ..
|
|
|
|
cd spe3
|
2018-08-17 02:38:06 -05:00
|
|
|
$WORKSPACE/$configuration/build-opm-simulators/bin/${EXE} --flow-newton-max-iterations=50 SPE3CASE1.DATA
|
2016-04-05 01:40:55 -05:00
|
|
|
test $? -eq 0 || exit 1
|
|
|
|
cd ..
|
|
|
|
cd spe9
|
2018-08-17 02:38:06 -05:00
|
|
|
$WORKSPACE/$configuration/build-opm-simulators/bin/${EXE} --flow-newton-max-iterations=50 SPE9_CP.DATA
|
2016-04-05 01:40:55 -05:00
|
|
|
test $? -eq 0 || exit 1
|
|
|
|
cd ..
|
|
|
|
|
2016-11-03 03:09:06 -05:00
|
|
|
compareECL=$WORKSPACE/$configuration/install/bin/compareECL
|
|
|
|
|
2016-04-05 01:40:55 -05:00
|
|
|
# Compare OPM with eclipse reference
|
2016-11-03 03:09:06 -05:00
|
|
|
reffile=spe1/eclipse-simulation/SPE1CASE2
|
|
|
|
opmfile=spe1/SPE1CASE2
|
|
|
|
dotest 0.01 0.01
|
2016-04-05 01:40:55 -05:00
|
|
|
test $? -eq 0 || exit 1
|
2016-11-03 03:09:06 -05:00
|
|
|
|
|
|
|
reffile=spe3/eclipse-simulation/SPE3CASE1
|
|
|
|
opmfile=spe3/SPE3CASE1
|
|
|
|
dotest 0.02 0.02
|
2016-04-05 01:40:55 -05:00
|
|
|
test $? -eq 0 || exit 1
|
2016-11-03 03:09:06 -05:00
|
|
|
|
|
|
|
reffile=spe9/eclipse-simulation/SPE9_CP
|
|
|
|
opmfile=spe9/SPE9_CP
|
|
|
|
dotest 0.002 0.001
|
2016-04-05 01:40:55 -05:00
|
|
|
test $? -eq 0 || exit 1
|
|
|
|
|
|
|
|
# Compare OPM with OPM reference
|
2017-04-10 05:27:19 -05:00
|
|
|
reffile=spe1/opm-simulation-reference/${EXE}/SPE1CASE2
|
2016-11-03 03:09:06 -05:00
|
|
|
opmfile=spe1/SPE1CASE2
|
|
|
|
dotest 0.001 0.001
|
2016-04-05 01:40:55 -05:00
|
|
|
test $? -eq 0 || exit 1
|
2016-11-03 03:09:06 -05:00
|
|
|
|
2017-04-10 05:27:19 -05:00
|
|
|
reffile=spe3/opm-simulation-reference/${EXE}/SPE3CASE1
|
2016-11-03 03:09:06 -05:00
|
|
|
opmfile=spe3/SPE3CASE1
|
|
|
|
dotest 0.001 0.001
|
2016-04-05 01:40:55 -05:00
|
|
|
test $? -eq 0 || exit 1
|
2016-11-03 03:09:06 -05:00
|
|
|
|
2017-04-10 05:27:19 -05:00
|
|
|
reffile=spe9/opm-simulation-reference/${EXE}/SPE9_CP
|
2016-11-03 03:09:06 -05:00
|
|
|
opmfile=spe9/SPE9_CP
|
|
|
|
dotest 0.002 0.007
|
2016-04-05 01:40:55 -05:00
|
|
|
test $? -eq 0 || exit 1
|
|
|
|
|
|
|
|
popd
|