From f786330a53dc06484a3d78c5545f0257c4253bcc Mon Sep 17 00:00:00 2001 From: Mohd Afeef Badri <52162083+mohd-afeef-badri@users.noreply.github.com> Date: Fri, 2 Aug 2024 16:08:59 +0200 Subject: [PATCH] enable parallel testing --- acoustics/CMakeLists.txt | 8 +++++ acoustics/Test.sub.hypre.arc | 67 ++++++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 acoustics/Test.sub.hypre.arc diff --git a/acoustics/CMakeLists.txt b/acoustics/CMakeLists.txt index 81ca3e48..8ce38afa 100644 --- a/acoustics/CMakeLists.txt +++ b/acoustics/CMakeLists.txt @@ -9,6 +9,7 @@ arcane_add_arcane_libraries_to_target(Acoustics) target_include_directories(Acoustics PUBLIC . ${CMAKE_CURRENT_BINARY_DIR}) configure_file(Acoustics.config ${CMAKE_CURRENT_BINARY_DIR} COPYONLY) configure_file(Test.sub.arc ${CMAKE_CURRENT_BINARY_DIR} COPYONLY) +configure_file(Test.sub.hypre.arc ${CMAKE_CURRENT_BINARY_DIR} COPYONLY) configure_file(${MSH_DIR}/sub.msh ${CMAKE_CURRENT_BINARY_DIR} COPYONLY) file(COPY "tests/" DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) @@ -18,3 +19,10 @@ target_link_libraries(Acoustics PUBLIC FemUtils) enable_testing() add_test(NAME [Acoustics]2D_submarine COMMAND Acoustics Test.sub.arc) + +if(FEMUTILS_HAS_SOLVER_BACKEND_HYPRE) + add_test(NAME [Acoustics]2D_submarine_hypre COMMAND Acoustics Test.sub.hypre.arc) + if(FEMUTILS_HAS_PARALLEL_SOLVER AND MPIEXEC_EXECUTABLE) + add_test(NAME [Acoustics]2D_submarine_hypret_2pe COMMAND ${MPIEXEC_EXECUTABLE} -n 2 ./Acoustics Test.sub.hypre.arc) + endif() +endif() diff --git a/acoustics/Test.sub.hypre.arc b/acoustics/Test.sub.hypre.arc new file mode 100644 index 00000000..9a7708de --- /dev/null +++ b/acoustics/Test.sub.hypre.arc @@ -0,0 +1,67 @@ + + + + + + + Submarine Toy Case + AcousticsLoop + + + + + + + sub.msh + + + + + + + .11e1 + + inner1 + 1.0 + + + hypre + bicgstab + 1e-8 + + sub_2D.txt + + + + + 1 + + U + + + +