mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-11-02 20:30:55 -06:00
add option to use development simulator binaries in split comm tests
This commit is contained in:
1 parent
b73789cedf
commit
2f8e900909
1 file changed
+14
-1
+14
-1
@@ -399,7 +399,16 @@ endfunction()
|
||||
# - This test class compares the output from a parallel simulation
|
||||
# to that of a parallel simulation running with a custom communicator.
|
||||
function(add_test_split_comm)
|
||||
set(oneValueArgs CASENAME FILENAME SIMULATOR ABS_TOL REL_TOL DIR MPI_PROCS)
|
||||
set(oneValueArgs
|
||||
CASENAME
|
||||
FILENAME
|
||||
DEV_SIMULATOR
|
||||
SIMULATOR
|
||||
ABS_TOL
|
||||
REL_TOL
|
||||
DIR
|
||||
MPI_PROCS
|
||||
)
|
||||
set(multiValueArgs TEST_ARGS)
|
||||
cmake_parse_arguments(PARAM "$" "${oneValueArgs}" "${multiValueArgs}" ${ARGN} )
|
||||
|
||||
@@ -413,6 +422,10 @@ function(add_test_split_comm)
|
||||
set(MPI_PROCS 4)
|
||||
endif()
|
||||
|
||||
if(USE_DEV_SIMULATOR_IN_TESTS AND PARAM_DEV_SIMULATOR)
|
||||
set(PARAM_SIMULATOR ${PARAM_DEV_SIMULATOR})
|
||||
endif()
|
||||
|
||||
set(RESULT_PATH ${BASE_RESULT_PATH}/parallelSplitComm/${PARAM_SIMULATOR}+${PARAM_CASENAME})
|
||||
set(DRIVER_ARGS -i ${OPM_TESTS_ROOT}/${PARAM_DIR}
|
||||
-r ${RESULT_PATH}
|
||||
|
||||
Reference in new issue
Block a user