mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-25 10:40:21 -06:00
9cae20d6f3
this compares the init file from a simulation run to a reference in opm-data
27 lines
715 B
Bash
Executable File
27 lines
715 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
INPUT_DATA_PATH="$1"
|
|
RESULT_PATH="$2"
|
|
BINPATH="$3"
|
|
FILENAME="$4"
|
|
ABS_TOL="$5"
|
|
REL_TOL="$6"
|
|
COMPARE_SUMMARY_COMMAND="$7"
|
|
COMPARE_ECL_COMMAND="$8"
|
|
EXE_NAME="${9}"
|
|
shift 9
|
|
TEST_ARGS="$@"
|
|
|
|
rm -Rf ${RESULT_PATH}
|
|
mkdir -p ${RESULT_PATH}
|
|
cd ${RESULT_PATH}
|
|
${BINPATH}/${EXE_NAME} ${TEST_ARGS}
|
|
cd ..
|
|
|
|
${COMPARE_SUMMARY_COMMAND} -r ${RESULT_PATH}/${FILENAME} ${INPUT_DATA_PATH}/opm-simulation-reference/${FILENAME} ${ABS_TOL} ${REL_TOL}
|
|
|
|
${COMPARE_ECL_COMMAND} ${RESULT_PATH}/${FILENAME} ${INPUT_DATA_PATH}/opm-simulation-reference/${FILENAME} ${ABS_TOL} ${REL_TOL}
|
|
|
|
${COMPARE_ECL_COMMAND} -t INIT ${RESULT_PATH}/${FILENAME} ${INPUT_DATA_PATH}/opm-simulation-reference/${FILENAME} ${ABS_TOL} ${REL_TOL}
|