# # @file CMakeLists.txt # # @brief # # @copyright # Copyright (©) 2021 EPFL (Ecole Polytechnique Fédérale de Lausanne) # SPC (Swiss Plasma Center) # # SPClibs is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either version 3 of the License, or (at your option) # any later version. # # SPClibs is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. # # You should have received a copy of the GNU Lesser General Public License # along with this program. If not, see . # # @authors # (in alphabetical order) # @author Trach-Minh Tran # project(multigrid_wk) set(MG_TESTS transfer1d test_relax test_mg test_mgp test_csr two_grid test_mg2d test_relax2d test_transf2d transfer1d_col test_relax2d_cyl test_transf2d_cyl test_mg2d_cyl poisson_fd ) set(RUNTESTS "${CMAKE_CURRENT_SOURCE_DIR}/runtest.sh") set(BIN_DIR "${multigrid_tests_BINARY_DIR}") set(INPUT_DIR "${CMAKE_CURRENT_SOURCE_DIR}") foreach(prog ${MG_TESTS}) add_test(${prog} ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} 1 ${RUNTESTS} ${BIN_DIR}/${prog} ${INPUT_DIR} ) endforeach()