mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
fixed: print correct command at end of update helper
do not point user to deps/opm-data, use the user-supplied directory. also add missing ewoms hash to output, consistently use $WORKSPACE everywhere and correct variable used for spe3|spe9 in data update loop
This commit is contained in:
parent
0466d71d15
commit
ea06f12d25
@ -117,7 +117,7 @@ echo " "
|
||||
echo " "
|
||||
echo ">>> To update opm-data, please use the following command <<<"
|
||||
echo " "
|
||||
echo "configuration=serial WORKSPACE=$WORKSPACE $SCRIPT_PATH/update_reference_data.sh $WORKSPACE/deps/opm-data [spe11] [spe12] [spe3] [spe9]"
|
||||
echo "configuration=serial WORKSPACE=$WORKSPACE $SCRIPT_PATH/update_reference_data.sh $OPM_DATA_ROOT [spe11] [spe12] [spe3] [spe9]"
|
||||
echo " "
|
||||
|
||||
echo ">>> To plot difference between new and old data, usse the following <<<"
|
||||
|
@ -14,7 +14,7 @@ copyToReferenceDir () {
|
||||
FILETYPES=${@:4};
|
||||
|
||||
for filetype in $FILETYPES; do
|
||||
cp "$SRC_DIR$STEM.$filetype" $DST_DIR
|
||||
echo cp "$WORKSPACE/$SRC_DIR$STEM.$filetype" $DST_DIR
|
||||
done
|
||||
}
|
||||
|
||||
@ -37,7 +37,7 @@ for test_name in ${@:2}; do
|
||||
EGRID INIT SMSPEC UNRST UNSMRY
|
||||
fi
|
||||
|
||||
if grep -q "spe3" <<< $2
|
||||
if grep -q "spe3" <<< $test_name
|
||||
then
|
||||
copyToReferenceDir \
|
||||
$configuration/build-opm-simulators/tests/results/flow_sequential+spe3/ \
|
||||
@ -46,7 +46,7 @@ for test_name in ${@:2}; do
|
||||
EGRID INIT PRT SMSPEC UNRST UNSMRY
|
||||
fi
|
||||
|
||||
if grep -q "spe9" <<< $2
|
||||
if grep -q "spe9" <<< $test_name
|
||||
then
|
||||
copyToReferenceDir \
|
||||
$configuration/build-opm-simulators/tests/results/flow+spe9/ \
|
||||
@ -61,7 +61,8 @@ done
|
||||
|
||||
|
||||
echo -e "update reference data for ${@:2}\n" > /tmp/cmsg
|
||||
for dep in ert opm-common opm-core opm-grid opm-material opm-parser opm-output
|
||||
echo -e "Reason: fill in this\n" >> /tmp/cmsg
|
||||
for dep in ert opm-common opm-core opm-grid opm-material opm-parser opm-output ewoms
|
||||
do
|
||||
pushd $WORKSPACE/deps/$dep > /dev/null
|
||||
name=`printf "%-14s" $dep`
|
||||
|
Loading…
Reference in New Issue
Block a user