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
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();
}
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
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
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());
}
}