#include <deal.II/dofs/dof_accessor.h>
#include <deal.II/multigrid/mg_tools.h>
#include <deal.II/multigrid/mg_transfer.h>
+#include <deal.II/distributed/tria.h>
#include <algorithm>
}
}
-#ifdef DEAL_II_WITH_P4EST
+#ifdef DEAL_II_WITH_MPI
// if this was a distributed DoFHandler, we need to do the reduction
// over the entire domain
- if (const parallel::distributed::Triangulation<dim,spacedim> *
- p_d_triangulation
- = dynamic_cast<const parallel::distributed::Triangulation<dim,spacedim> *>(&dof.get_tria()))
+ if (const parallel::Triangulation<dim,spacedim> *
+ p_triangulation
+ = dynamic_cast<const parallel::Triangulation<dim,spacedim> *>(&dof.get_tria()))
{
// The type used to store the elements of the global vector may be a
// real or a complex number. Do the global reduction always with real
MPI_Allreduce (&my_values, &global_values, 3, MPI_DOUBLE,
MPI_SUM,
- p_d_triangulation->get_communicator());
+ p_triangulation->get_communicator());
set_possibly_complex_number(global_values[0], global_values[1],
mean);
//
// ---------------------------------------------------------------------
-
#include <deal.II/base/utilities.h>
+#include <deal.II/base/mpi.h>
#include <deal.II/base/memory_consumption.h>
#include <deal.II/base/logstream.h>
#include <deal.II/lac/sparsity_tools.h>
#include <deal.II/grid/tria_accessor.h>
#include <deal.II/grid/tria_iterator.h>
#include <deal.II/grid/grid_tools.h>
-#include <deal.II/distributed/tria.h>
+#include <deal.II/distributed/shared_tria.h>
#include <algorithm>
#include <deal.II/grid/tria.h>
#include <deal.II/base/geometry_info.h>
#include <deal.II/fe/fe.h>
+#include <deal.II/distributed/shared_tria.h>
+#include <deal.II/distributed/tria.h>
#include <set>
#include <algorithm>
#include <deal.II/dofs/dof_accessor.h>
#include <deal.II/dofs/dof_handler_policy.h>
#include <deal.II/fe/fe.h>
+#include <deal.II/distributed/shared_tria.h>
+#include <deal.II/distributed/tria.h>
#include <set>
#include <algorithm>
#include <deal.II/multigrid/mg_tools.h>
+#include <deal.II/distributed/tria.h>
+
#include <boost/config.hpp>
#include <boost/graph/adjacency_list.hpp>
#include <boost/graph/cuthill_mckee_ordering.hpp>
#include <deal.II/hp/q_collection.h>
#include <deal.II/hp/fe_values.h>
#include <deal.II/dofs/dof_tools.h>
+#include <deal.II/distributed/tria.h>
#include <algorithm>
ExcInternalError());
// reduce information from all CPUs
-#if defined(DEAL_II_WITH_P4EST) && defined(DEAL_II_WITH_MPI)
+#ifdef DEAL_II_WITH_MPI
const unsigned int dim = DH::dimension;
const unsigned int spacedim = DH::space_dimension;
- if (const parallel::distributed::Triangulation<dim,spacedim> *tria
- = (dynamic_cast<const parallel::distributed::Triangulation<dim,spacedim>*>
+ if (const parallel::Triangulation<dim,spacedim> *tria
+ = (dynamic_cast<const parallel::Triangulation<dim,spacedim>*>
(&dof_handler.get_tria())))
{
std::vector<types::global_dof_index> local_dof_count = dofs_per_component;
+= std::count(dofs_by_block.begin(), dofs_by_block.end(),
block);
-#ifdef DEAL_II_WITH_P4EST
#ifdef DEAL_II_WITH_MPI
// if we are working on a parallel mesh, we now need to collect
// this information from all processors
- if (const parallel::distributed::Triangulation<DH::dimension,DH::space_dimension> *tria
- = (dynamic_cast<const parallel::distributed::Triangulation<DH::dimension,DH::space_dimension>*>
+ if (const parallel::Triangulation<DH::dimension,DH::space_dimension> *tria
+ = (dynamic_cast<const parallel::Triangulation<DH::dimension,DH::space_dimension>*>
(&dof_handler.get_tria())))
{
std::vector<types::global_dof_index> local_dof_count = dofs_per_block;
DEAL_II_DOF_INDEX_MPI_TYPE,
MPI_SUM, tria->get_communicator());
}
-#endif
#endif
}
}
#include <deal.II/grid/tria_levels.h>
#include <deal.II/grid/tria.h>
#include <deal.II/fe/fe.h>
+#include <deal.II/distributed/shared_tria.h>
+#include <deal.II/distributed/tria.h>
#include <set>
#include <algorithm>
#include <deal.II/hp/q_collection.h>
#include <deal.II/hp/mapping_collection.h>
#include <deal.II/numerics/error_estimator.h>
+#include <deal.II/distributed/tria.h>
#include <deal.II/base/std_cxx11/bind.h>
#include <deal.II/hp/q_collection.h>
#include <deal.II/hp/mapping_collection.h>
#include <deal.II/numerics/error_estimator.h>
+#include <deal.II/distributed/tria.h>
#include <deal.II/base/std_cxx11/bind.h>