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 parallel tests
This commit is contained in:
1 parent
b3a7d705ad
commit
a51b1890eb
1 file changed
+15
-1
+15
-1
@@ -244,7 +244,17 @@ endfunction()
|
||||
# - This test class compares the output from a parallel simulation
|
||||
# to the output from the serial instance of the same model.
|
||||
function(add_test_compare_parallel_simulation)
|
||||
set(oneValueArgs CASENAME FILENAME SIMULATOR ABS_TOL REL_TOL DIR POSTFIX MPI_PROCS)
|
||||
set(oneValueArgs
|
||||
CASENAME
|
||||
FILENAME
|
||||
DEV_SIMULATOR
|
||||
SIMULATOR
|
||||
ABS_TOL
|
||||
REL_TOL
|
||||
DIR
|
||||
POSTFIX
|
||||
MPI_PROCS
|
||||
)
|
||||
set(multiValueArgs TEST_ARGS)
|
||||
cmake_parse_arguments(PARAM "$" "${oneValueArgs}" "${multiValueArgs}" ${ARGN} )
|
||||
|
||||
@@ -264,6 +274,10 @@ function(add_test_compare_parallel_simulation)
|
||||
set(MPI_PROCS 4)
|
||||
endif()
|
||||
|
||||
if(USE_DEV_SIMULATOR_IN_TESTS AND PARAM_DEV_SIMULATOR)
|
||||
set(PARAM_SIMULATOR ${PARAM_DEV_SIMULATOR})
|
||||
endif()
|
||||
|
||||
if(MPIEXEC_MAX_NUMPROCS GREATER_EQUAL MPI_PROCS)
|
||||
# Local computer system has at least ${MPI_PROCS} CPUs. Register test.
|
||||
set(RESULT_PATH ${BASE_RESULT_PATH}/parallel/${PARAM_SIMULATOR}+${PARAM_CASENAME})
|
||||
|
||||
Reference in new issue
Block a user