]> https://gitweb.dealii.org/ - dealii.git/commitdiff
No more anonymous namespace in p::d::CellDataTransfer.
authorMarc Fehling <marc.fehling@gmx.net>
Wed, 10 Jul 2019 15:01:25 +0000 (17:01 +0200)
committerMarc Fehling <marc.fehling@gmx.net>
Wed, 10 Jul 2019 15:01:25 +0000 (17:01 +0200)
include/deal.II/distributed/cell_data_transfer.templates.h
source/hp/dof_handler.cc

index 08523d833b3f07872b539912ef0c8dfd810e3c34..ed4e233e0c1622dc8fa822a5e415bf1be6a8dc32 100644 (file)
 DEAL_II_NAMESPACE_OPEN
 
 
-namespace
+namespace internal
 {
-  template <typename VectorType>
-  void
-  post_refinement_action(std::vector<VectorType *> &all_out)
+  namespace parallel
   {
-    for (auto &out : all_out)
-      out->compress(::dealii::VectorOperation::insert);
-  }
+    namespace distributed
+    {
+      namespace CellDataTransferImplementation
+      {
+        template <typename VectorType>
+        void
+        post_unpack_action(std::vector<VectorType *> &all_out)
+        {
+          for (auto &out : all_out)
+            out->compress(::dealii::VectorOperation::insert);
+        }
+
+        template <typename value_type>
+        void
+        post_unpack_action(std::vector<std::vector<value_type> *> &)
+        {
+          // Do nothing for std::vector as VectorType.
+        }
+      } // namespace CellDataTransferImplementation
+    }   // namespace distributed
+  }     // namespace parallel
+} // namespace internal
 
-  template <typename ValueType>
-  void
-  post_refinement_action(std::vector<std::vector<ValueType> *> &)
-  {
-    // Do nothing for std::vector as VectorType.
-  }
-} // namespace
 
 
 namespace parallel
@@ -212,7 +222,8 @@ namespace parallel
                   std::placeholders::_3,
                   std::ref(all_out)));
 
-      post_refinement_action(all_out);
+      dealii::internal::parallel::distributed::CellDataTransferImplementation::
+        post_unpack_action(all_out);
 
       input_vectors.clear();
     }
index 1b67554d37b445545b6f2c90d61934ca709bbb5f..a94637d7affedf05c7e421e4d5cd1eb6b13bc94d 100644 (file)
@@ -991,10 +991,10 @@ namespace internal
         communicate_active_fe_indices(
           dealii::hp::DoFHandler<dim, spacedim> &dof_handler)
         {
-          if (const parallel::shared::Triangulation<dim, spacedim> *tr =
+          if (const dealii::parallel::shared::Triangulation<dim, spacedim> *tr =
                 dynamic_cast<
-                  const parallel::shared::Triangulation<dim, spacedim> *>(
-                  &dof_handler.get_triangulation()))
+                  const dealii::parallel::shared::Triangulation<dim, spacedim>
+                    *>(&dof_handler.get_triangulation()))
             {
               // we have a shared triangulation. in this case, every processor
               // knows about all cells, but every processor only has knowledge
@@ -1029,10 +1029,11 @@ namespace internal
                     cell->index(),
                     active_fe_indices[cell->active_cell_index()]);
             }
-          else if (const parallel::distributed::Triangulation<dim, spacedim>
-                     *tr = dynamic_cast<
-                       const parallel::distributed::Triangulation<dim, spacedim>
-                         *>(&dof_handler.get_triangulation()))
+          else if (const dealii::parallel::distributed::Triangulation<dim,
+                                                                      spacedim>
+                     *tr = dynamic_cast<const dealii::parallel::distributed::
+                                          Triangulation<dim, spacedim> *>(
+                       &dof_handler.get_triangulation()))
             {
               // For completely distributed meshes, use the function that is
               // able to move data from locally owned cells on one processor to
@@ -1068,10 +1069,10 @@ namespace internal
           else
             {
               // a sequential triangulation. there is nothing we need to do here
-              Assert(
-                (dynamic_cast<const parallel::Triangulation<dim, spacedim> *>(
-                   &dof_handler.get_triangulation()) == nullptr),
-                ExcInternalError());
+              Assert((dynamic_cast<
+                        const dealii::parallel::Triangulation<dim, spacedim> *>(
+                        &dof_handler.get_triangulation()) == nullptr),
+                     ExcInternalError());
             }
         }
 

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.