From: Matthias Maier Date: Tue, 20 Jun 2023 15:31:55 +0000 (-0500) Subject: Test gmsh/gmsh_api*: add MPI_InitFinalize which is necessary if gmsh was built with... X-Git-Tag: v9.5.0-rc1~82^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80198a358e7d2bc4b0fbe1d72974ab044bab8b1f;p=dealii.git Test gmsh/gmsh_api*: add MPI_InitFinalize which is necessary if gmsh was built with MPI support --- diff --git a/tests/gmsh/gmsh_api_01.cc b/tests/gmsh/gmsh_api_01.cc index e092c79965..a08b15ef02 100644 --- a/tests/gmsh/gmsh_api_01.cc +++ b/tests/gmsh/gmsh_api_01.cc @@ -22,8 +22,10 @@ #include "../tests.h" int -main() +main(int argc, char **argv) { + // gmsh might be build with mpi support enabled. + Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv); initlog(); const unsigned int dim = 2; diff --git a/tests/gmsh/gmsh_api_02.cc b/tests/gmsh/gmsh_api_02.cc index c1b4bfc107..37956a933b 100644 --- a/tests/gmsh/gmsh_api_02.cc +++ b/tests/gmsh/gmsh_api_02.cc @@ -41,8 +41,10 @@ test(const std::uint8_t kind, const std::string out = "") } int -main() +main(int argc, char **argv) { + // gmsh might be build with mpi support enabled. + Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv); initlog(); // Generate and print all reference cells diff --git a/tests/gmsh/gmsh_api_03.cc b/tests/gmsh/gmsh_api_03.cc index af2483b5fd..56a384dda5 100644 --- a/tests/gmsh/gmsh_api_03.cc +++ b/tests/gmsh/gmsh_api_03.cc @@ -44,8 +44,10 @@ test(const Triangulation &tria) int -main() +main(int argc, char **argv) { + // gmsh might be build with mpi support enabled. + Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv); initlog(); { Triangulation<2> tria; diff --git a/tests/gmsh/gmsh_api_04.cc b/tests/gmsh/gmsh_api_04.cc index 5483b69d14..816db05ec0 100644 --- a/tests/gmsh/gmsh_api_04.cc +++ b/tests/gmsh/gmsh_api_04.cc @@ -55,8 +55,10 @@ test(const std::uint8_t kind, const std::string out = "") } int -main() +main(int argc, char **argv) { + // gmsh might be build with mpi support enabled. + Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv); initlog(); // Generate and print all reference cells diff --git a/tests/gmsh/gmsh_api_05.cc b/tests/gmsh/gmsh_api_05.cc index d653407413..955b83b222 100644 --- a/tests/gmsh/gmsh_api_05.cc +++ b/tests/gmsh/gmsh_api_05.cc @@ -50,8 +50,10 @@ test() } int -main() +main(int argc, char **argv) { + // gmsh might be build with mpi support enabled. + Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv); initlog(); // Generate and print all hypercubes in all dimension combinations