Skip to content

Commit

Permalink
CMake: deal_ii_add_test(): use ./serial subdirectory for output of se…
Browse files Browse the repository at this point in the history
…rial tests
  • Loading branch information
tamiko committed Jan 26, 2024
1 parent 6d3a63f commit 7da98f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/macros/macro_deal_ii_add_test.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,10 @@ function(deal_ii_add_test _category _test_name _comparison_file)
set(_test_full ${_category}/${_test_name}) # full test name
set(_test_directory ${CMAKE_CURRENT_BINARY_DIR}/${_test_name}.${_build_lowercase}) # directory to run the test in

if("${_n_cpu}" STREQUAL "0" AND "${_n_threads}" STREQUAL "0")
string(APPEND _test_directory "/serial")
endif()

if(NOT "${_n_cpu}" STREQUAL "0")
string(APPEND _test_target ".mpirun${_n_cpu}")
string(APPEND _test_full ".mpirun=${_n_cpu}")
Expand Down

0 comments on commit 7da98f6

Please sign in to comment.