]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Adjust a couple of tests.
authorWolfgang Bangerth <bangerth@colostate.edu>
Sat, 26 Feb 2022 23:48:03 +0000 (16:48 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 3 Mar 2022 21:42:52 +0000 (14:42 -0700)
tests/mpi/renumber_cuthill_mckee.cc
tests/mpi/renumber_cuthill_mckee_02.cc

index 750c664a85d72fc1853a6255397fd89e12613fdc..36572641735e341f0ce15c42c03b07b53fc91345 100644 (file)
@@ -119,14 +119,16 @@ test()
           if (myid == i)
             MPI_Send(&renumbering[0],
                      renumbering.size(),
-                     Utilities::MPI::mpi_type_id(&complete_renumbering[0]),
+                     Utilities::MPI::mpi_type_id_for_type<decltype(
+                       complete_renumbering[0])>,
                      0,
                      i,
                      MPI_COMM_WORLD);
           else if (myid == 0)
             MPI_Recv(&complete_renumbering[offset],
                      dofs_per_proc[i].n_elements(),
-                     Utilities::MPI::mpi_type_id(&complete_renumbering[0]),
+                     Utilities::MPI::mpi_type_id_for_type<decltype(
+                       complete_renumbering[0])>,
                      i,
                      i,
                      MPI_COMM_WORLD,
index 5e2a5b215da7579d6bb4161eaf0ab42f5229b64b..3871a6dc3040edae7d3bc9761af752b60a304197 100644 (file)
@@ -85,14 +85,16 @@ test()
       if (myid == i)
         MPI_Send(&renumbering[0],
                  renumbering.size(),
-                 Utilities::MPI::mpi_type_id(&complete_renumbering[0]),
+                 Utilities::MPI::mpi_type_id_for_type<decltype(
+                   complete_renumbering[0])>,
                  0,
                  i,
                  MPI_COMM_WORLD);
       else if (myid == 0)
         MPI_Recv(&complete_renumbering[offset],
                  locally_owned_dofs_per_processor[i].n_elements(),
-                 Utilities::MPI::mpi_type_id(&complete_renumbering[0]),
+                 Utilities::MPI::mpi_type_id_for_type<decltype(
+                   complete_renumbering[0])>,
                  i,
                  i,
                  MPI_COMM_WORLD,

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.