mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-28 20:13:49 -06:00
Merge pull request #1544 from joakim-hove/use-opm-pack
Relocate restart data file in tests
This commit is contained in:
commit
11b987b97d
@ -69,6 +69,7 @@ function(add_test_compare_restarted_simulation)
|
||||
${PARAM_ABS_TOL} ${PARAM_REL_TOL}
|
||||
${COMPARE_SUMMARY_COMMAND}
|
||||
${COMPARE_ECL_COMMAND}
|
||||
${OPM_PACK_COMMAND}
|
||||
0
|
||||
TEST_ARGS ${TEST_ARGS})
|
||||
endfunction()
|
||||
@ -130,6 +131,7 @@ function(add_test_compare_parallel_restarted_simulation)
|
||||
${PARAM_ABS_TOL} ${PARAM_REL_TOL}
|
||||
${COMPARE_SUMMARY_COMMAND}
|
||||
${COMPARE_ECL_COMMAND}
|
||||
${OPM_PACK_COMMAND}
|
||||
1
|
||||
TEST_ARGS ${TEST_ARGS})
|
||||
endfunction()
|
||||
|
@ -12,11 +12,14 @@ ABS_TOL="$5"
|
||||
REL_TOL="$6"
|
||||
COMPARE_SUMMARY_COMMAND="$7"
|
||||
COMPARE_ECL_COMMAND="$8"
|
||||
PARALLEL="${9}"
|
||||
EXE_NAME="${10}"
|
||||
shift 10
|
||||
OPM_PACK_COMMAND="$9"
|
||||
PARALLEL="${10}"
|
||||
EXE_NAME="${11}"
|
||||
shift 11
|
||||
TEST_ARGS="$@"
|
||||
|
||||
BASE_NAME=`basename ${TEST_ARGS}_RESTART.DATA`
|
||||
|
||||
rm -Rf ${RESULT_PATH}
|
||||
mkdir -p ${RESULT_PATH}
|
||||
cd ${RESULT_PATH}
|
||||
@ -28,7 +31,9 @@ else
|
||||
fi
|
||||
${CMD_PREFIX} ${BINPATH}/${EXE_NAME} ${TEST_ARGS}.DATA timestep.adaptive=false output_dir=${RESULT_PATH}
|
||||
test $? -eq 0 || exit 1
|
||||
${CMD_PREFIX} ${BINPATH}/${EXE_NAME} ${TEST_ARGS}_RESTART.DATA timestep.adaptive=false output_dir=${RESULT_PATH}
|
||||
|
||||
${OPM_PACK_COMMAND} -o ${BASE_NAME} ${TEST_ARGS}_RESTART.DATA
|
||||
${CMD_PREFIX} ${BINPATH}/${EXE_NAME} ${BASE_NAME} timestep.adaptive=false output_dir=${RESULT_PATH}
|
||||
test $? -eq 0 || exit 1
|
||||
|
||||
ecode=0
|
||||
|
Loading…
Reference in New Issue
Block a user