]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Test gmsh/gmsh_api*: add MPI_InitFinalize which is necessary if gmsh was built with...
authorMatthias Maier <maier@tamu.edu>
Tue, 20 Jun 2023 15:31:55 +0000 (10:31 -0500)
committerMatthias Maier <tamiko@43-1.org>
Tue, 20 Jun 2023 15:41:26 +0000 (10:41 -0500)
tests/gmsh/gmsh_api_01.cc
tests/gmsh/gmsh_api_02.cc
tests/gmsh/gmsh_api_03.cc
tests/gmsh/gmsh_api_04.cc
tests/gmsh/gmsh_api_05.cc

index e092c799652b6d7693efa25f229d87fbb37c1920..a08b15ef025740985522c11a423d6250096d2801 100644 (file)
 #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;
index c1b4bfc107c2a8701c7aedc66d9e21b70ef404e3..37956a933b5db29a36db8b649834f2a4d0188091 100644 (file)
@@ -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
index af2483b5fd8a6cac2faecf2b21a7cd939c81dc14..56a384dda5d2c8afd747b3b81f2d1f945aa902c9 100644 (file)
@@ -44,8 +44,10 @@ test(const Triangulation<dim, spacedim> &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;
index 5483b69d1413fb3e7c21dc3ab5c07a0c1a3e6315..816db05ec0dfaa1a51f490c2cbd0e6cbff15ac56 100644 (file)
@@ -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
index d65340741343538f789b47d173b3463209918b47..955b83b22235105bd0cd199348f796a344742a9f 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.