Skip to content

Commit

Permalink
Skip fcompare on nalu-nalu tests (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
marchdf authored Jan 10, 2025
1 parent f0c9f3e commit 2d05482
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,20 @@ endif()
macro(setup_test)
set(CURRENT_TEST_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/test_files/${TEST_NAME})
set(CURRENT_TEST_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/test_files/${TEST_NAME})
set(PLOT_GOLD ${GOLD_FILES_DIRECTORY}/${TEST_NAME}/plt00010)
set(PLOT_TEST ${CURRENT_TEST_BINARY_DIR}/plt00010)
if(NOT "${TEST_NAME}" MATCHES "^nalu-nalu")
set(PLOT_GOLD ${GOLD_FILES_DIRECTORY}/${TEST_NAME}/plt00010)
set(PLOT_TEST ${CURRENT_TEST_BINARY_DIR}/plt00010)
endif()
file(MAKE_DIRECTORY ${CURRENT_TEST_BINARY_DIR})
file(GLOB TEST_FILES "${CURRENT_TEST_SOURCE_DIR}/*")
file(COPY ${TEST_FILES} DESTINATION "${CURRENT_TEST_BINARY_DIR}/")
set(TEST_NP 2)
set(MPI_COMMANDS "${MPIEXEC_EXECUTABLE} ${MPIEXEC_NUMPROC_FLAG} ${TEST_NP} ${MPIEXEC_PREFLAGS}")
if(EXAWIND_SAVE_GOLDS)
if(EXAWIND_SAVE_GOLDS AND (NOT "${TEST_NAME}" MATCHES "^nalu-nalu"))
file(MAKE_DIRECTORY ${SAVED_GOLDS_DIRECTORY}/${TEST_NAME})
set(SAVE_GOLDS_COMMAND "&& cp -R ${PLOT_TEST} ${SAVED_GOLDS_DIRECTORY}/${TEST_NAME}/")
endif()
if(EXAWIND_TEST_WITH_FCOMPARE)
if(EXAWIND_TEST_WITH_FCOMPARE AND (NOT "${TEST_NAME}" MATCHES "^nalu-nalu"))
set(FCOMPARE_COMMAND "&& CUDA_LAUNCH_BLOCKING=1 ${FCOMPARE_EXE} ${FCOMPARE_TOLERANCE} ${PLOT_GOLD} ${PLOT_TEST}")
endif()
execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
Expand Down Expand Up @@ -86,9 +88,7 @@ endfunction(add_test_rd)
# Regression tests
#=============================================================================
add_test_r(sphere)
add_test_r(nalu-nalu-cylinder)
add_test_r(amr-nalu-cylinder)
add_test_r(nalu-nalu-cylinder-motion)
add_test_r(amr-nalu-cylinder-motion)
add_test_r(zalesak)
add_test_r(hybrid-multi-cylinder)
Expand All @@ -97,6 +97,7 @@ add_test_r(sloshing-tank)
add_test_r(linear-waves)
add_test_r(stokes-waves-cylinder)
add_test_r(dam-break-block)

add_test_r(abl-bndry-output)
add_test_rd(abl-bndry-input abl-bndry-output)
add_test_r(nalu-nalu-cylinder)
add_test_r(nalu-nalu-cylinder-motion)

0 comments on commit 2d05482

Please sign in to comment.