]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove static_cast 17478/head
authorPeter Munch <peterrmuench@gmail.com>
Sat, 10 Aug 2024 16:38:33 +0000 (18:38 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Sat, 10 Aug 2024 16:38:33 +0000 (18:38 +0200)
tests/mpi/extract_constant_modes_01.cc
tests/mpi/extract_constant_modes_02.cc
tests/mpi/extract_constant_modes_03.cc
tests/mpi/extract_constant_modes_04.cc
tests/mpi/mg_ghost_layer_periodic.cc
tests/mpi/p4est_2d_renumber_02.cc

index 89b0deb8074ccbb90026789354275dd6650f0f7c..eea5ec9b2e7f5b16e6c0a40aa66a4b4f92042877 100644 (file)
@@ -49,8 +49,10 @@ test()
   std::vector<unsigned int> sub(2);
   sub[0] = Utilities::MPI::n_mpi_processes(MPI_COMM_WORLD);
   sub[1] = 1;
-  GridGenerator::subdivided_hyper_rectangle(
-    static_cast<Triangulation<dim> &>(tr), sub, Point<2>(0, 0), Point<2>(1, 1));
+  GridGenerator::subdivided_hyper_rectangle(tr,
+                                            sub,
+                                            Point<2>(0, 0),
+                                            Point<2>(1, 1));
 
   FESystem<dim>   fe(FE_Q<dim>(1), 2, FE_DGQ<dim>(0), 1);
   DoFHandler<dim> dofh(tr);
index 999c5dceebbeeaeb68db7a33cf3b1f77fa285d69..d115ac54d0633d954e74d5d09df06b1fb5830ea7 100644 (file)
@@ -47,8 +47,10 @@ test()
   std::vector<unsigned int> sub(2);
   sub[0] = Utilities::MPI::n_mpi_processes(MPI_COMM_WORLD);
   sub[1] = 1;
-  GridGenerator::subdivided_hyper_rectangle(
-    static_cast<Triangulation<dim> &>(tr), sub, Point<2>(0, 0), Point<2>(1, 1));
+  GridGenerator::subdivided_hyper_rectangle(tr,
+                                            sub,
+                                            Point<2>(0, 0),
+                                            Point<2>(1, 1));
 
   FE_Q_DG0<dim>   fe(1);
   DoFHandler<dim> dofh(tr);
index 0eaee97e95fb4f0166dbf47523481a43d09b487e..432fe34c41e82e5fb311cc9579a1e9eef3d29647 100644 (file)
@@ -51,8 +51,10 @@ test(unsigned int fe_nothing_index)
   std::vector<unsigned int> sub(2);
   sub[0] = 2 * Utilities::MPI::n_mpi_processes(MPI_COMM_WORLD);
   sub[1] = 1;
-  GridGenerator::subdivided_hyper_rectangle(
-    static_cast<Triangulation<dim> &>(tr), sub, Point<2>(0, 0), Point<2>(1, 1));
+  GridGenerator::subdivided_hyper_rectangle(tr,
+                                            sub,
+                                            Point<2>(0, 0),
+                                            Point<2>(1, 1));
 
   DoFHandler<dim> dofh(tr);
 
index 87d860e409bd1d5df076865b5d4f2dba54686208..80fdd790ee16fd889e1db502789e5bf514808a21 100644 (file)
@@ -53,8 +53,10 @@ test()
   std::vector<unsigned int> sub(2);
   sub[0] = Utilities::MPI::n_mpi_processes(MPI_COMM_WORLD);
   sub[1] = 1;
-  GridGenerator::subdivided_hyper_rectangle(
-    static_cast<Triangulation<dim> &>(tr), sub, Point<2>(0, 0), Point<2>(1, 1));
+  GridGenerator::subdivided_hyper_rectangle(tr,
+                                            sub,
+                                            Point<2>(0, 0),
+                                            Point<2>(1, 1));
 
   FESystem<dim>   fe(FE_Q<dim>(1), 2, FE_DGQ<dim>(0), 1);
   DoFHandler<dim> dofh(tr);
index c40aff2f8bc23ffe34b46c638b65e8fa18409a7b..3d590256b4e81557b29a607689f75c50e1d9f203 100644 (file)
@@ -49,11 +49,8 @@ test()
     GridTools::PeriodicFacePair<typename Triangulation<dim>::cell_iterator>>
     periodic_faces;
   for (unsigned int d = 0; d < dim; ++d)
-    GridTools::collect_periodic_faces(static_cast<Triangulation<dim> &>(tria),
-                                      2 * d,
-                                      2 * d + 1,
-                                      d,
-                                      periodic_faces);
+    GridTools::collect_periodic_faces(
+      tria, 2 * d, 2 * d + 1, d, periodic_faces);
 
   tria.add_periodicity(periodic_faces);
 
index b9390bea91e3ec61deb053cefd0cd94e5087d6e9..98a74a2e95cf585663f6f39fa36a3518f6a94da7 100644 (file)
@@ -53,8 +53,10 @@ test()
   std::vector<unsigned int> sub(2);
   sub[0] = Utilities::MPI::n_mpi_processes(MPI_COMM_WORLD);
   sub[1] = 1;
-  GridGenerator::subdivided_hyper_rectangle(
-    static_cast<Triangulation<dim> &>(tr), sub, Point<2>(0, 0), Point<2>(1, 1));
+  GridGenerator::subdivided_hyper_rectangle(tr,
+                                            sub,
+                                            Point<2>(0, 0),
+                                            Point<2>(1, 1));
 
   const FE_Q<dim> fe_q(1);
   FESystem<dim>   fe(fe_q, 2);

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.