16#ifndef dealii_distributed_tria_h
17#define dealii_distributed_tria_h
31#include <boost/range/iterator_range.hpp>
40#ifdef DEAL_II_WITH_MPI
44#ifdef DEAL_II_WITH_P4EST
46# include <p4est_connectivity.h>
47# include <p4est_ghost.h>
49# include <p8est_connectivity.h>
50# include <p8est_ghost.h>
56#ifdef DEAL_II_WITH_P4EST
65 template <
int,
int,
class>
66 class ExtrapolateImplementation;
73 template <
typename CellIterator>
74 struct PeriodicFacePair;
82 class TemporarilyMatchRefineFlags;
248 template <
int dim,
int spacedim = dim>
271 typename ::Triangulation<dim, spacedim>::cell_iterator;
292 typename ::Triangulation<dim, spacedim>::active_cell_iterator;
295 typename ::Triangulation<dim, spacedim>::CellStatus;
365 const typename ::Triangulation<dim, spacedim>::MeshSmoothing
404 const typename ::internal::p4est::types<dim>::forest
406 const typename ::internal::p4est::types<dim>::gloidx
407 *previous_global_first_quadrant);
418 const ::Triangulation<dim, spacedim> &other_tria)
override;
442 &construction_data)
override;
587 save(
const std::string &filename)
const override;
610 load(
const std::string &filename,
611 const bool autopartition =
true)
override;
619 load(
const typename ::internal::p4est::types<dim>::forest *forest);
627 const std::vector<types::global_dof_index> &
635 const std::vector<types::global_dof_index> &
645 const typename ::internal::p4est::types<dim>::forest *
740 std::vector<types::global_dof_index>
742 std::vector<types::global_dof_index>
749 typename ::internal::p4est::types<dim>::tree *
750 init_tree(
const int dealii_coarse_cell_index)
const;
790 std::vector<unsigned int>
811 const unsigned int coarse_cell_index)
const override;
813 template <
int,
int,
class>
814 friend class ::FETools::internal::ExtrapolateImplementation;
826 template <
int spacedim>
847 const typename ::Triangulation<1, spacedim>::MeshSmoothing
862 const std::vector<types::global_dof_index> &
870 load(
const std::string &filename,
871 const bool autopartition =
true)
override;
878 save(
const std::string &filename)
const override;
898 std::vector<types::global_dof_index>
900 std::vector<types::global_dof_index>
907 virtual std::map<unsigned int, std::set<::types::subdomain_id>>
908 compute_level_vertices_with_ghost_neighbors(
909 const unsigned int level)
const;
915 virtual std::vector<bool>
924 const unsigned int coarse_cell_index)
const override;
937 namespace distributed
950 template <
int dim,
int spacedim = dim>
972 const typename ::Triangulation<dim, spacedim>::MeshSmoothing
992 save(
const std::string & )
const override
1000 load(
const std::string & ,
1001 const bool =
true)
override
1021 namespace distributed
1040 template <
int dim,
int spacedim = dim>
std::vector< Point< spacedim > > vertices
MeshSmoothing smooth_grid
const MPI_Comm mpi_communicator
TemporarilyMatchRefineFlags(::Triangulation< dim, spacedim > &tria)
~TemporarilyMatchRefineFlags()
const SmartPointer< ::parallel::distributed::Triangulation< dim, spacedim > > distributed_tria
std::vector< bool > saved_refine_flags
std::vector< bool > saved_coarsen_flags
std::vector< types::global_dof_index > p4est_tree_to_coarse_cell_permutation
std::vector< types::global_dof_index > coarse_cell_to_p4est_tree_permutation
virtual void execute_coarsening_and_refinement() override
void setup_coarse_cell_to_p4est_tree_permutation()
@ no_automatic_repartitioning
@ construct_multigrid_hierarchy
@ mesh_reconstruction_after_repartitioning
typename ::Triangulation< dim, spacedim >::CellStatus CellStatus
virtual bool has_hanging_nodes() const override
virtual void add_periodicity(const std::vector<::GridTools::PeriodicFacePair< cell_iterator > > &) override
bool triangulation_has_content
virtual types::coarse_cell_id coarse_cell_index_to_coarse_cell_id(const unsigned int coarse_cell_index) const override
virtual void copy_triangulation(const ::Triangulation< dim, spacedim > &other_tria) override
const std::vector< types::global_dof_index > & get_p4est_tree_to_coarse_cell_permutation() const
Triangulation(const MPI_Comm &mpi_communicator, const typename ::Triangulation< dim, spacedim >::MeshSmoothing smooth_grid=(::Triangulation< dim, spacedim >::none), const Settings settings=default_setting)
std::vector< unsigned int > get_cell_weights() const
unsigned int get_checksum() const
virtual ~Triangulation() override
std::vector< types::global_dof_index > p4est_tree_to_coarse_cell_permutation
virtual void update_cell_relations() override
void copy_new_triangulation_to_p4est(std::integral_constant< int, 3 >)
void execute_transfer(const typename ::internal::p4est::types< dim >::forest *parallel_forest, const typename ::internal::p4est::types< dim >::gloidx *previous_global_first_quadrant)
typename::internal::p4est::types< dim >::tree * init_tree(const int dealii_coarse_cell_index) const
virtual void load(const std::string &filename, const bool autopartition=true) override
virtual bool prepare_coarsening_and_refinement() override
std::vector< bool > mark_locally_active_vertices_on_level(const int level) const
const ::internal::p4est::types< dim >::forest * get_p4est() const
typename::internal::p4est::types< dim >::forest * parallel_forest
const std::vector< types::global_dof_index > & get_coarse_cell_to_p4est_tree_permutation() const
typename::internal::p4est::types< dim >::connectivity * connectivity
void write_mesh_vtk(const std::string &file_basename) const
void copy_local_forest_to_triangulation()
virtual unsigned int coarse_cell_id_to_coarse_cell_index(const types::coarse_cell_id coarse_cell_id) const override
void copy_new_triangulation_to_p4est(std::integral_constant< int, 2 >)
virtual void save(const std::string &filename) const override
virtual std::size_t memory_consumption_p4est() const
virtual void clear() override
bool is_multilevel_hierarchy_constructed() const override
std::vector< types::global_dof_index > coarse_cell_to_p4est_tree_permutation
virtual void create_triangulation(const std::vector< Point< spacedim > > &vertices, const std::vector< CellData< dim > > &cells, const SubCellData &subcelldata) override
virtual std::size_t memory_consumption() const override
typename::internal::p4est::types< dim >::ghost * parallel_ghost
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
typename ::Triangulation< dim, spacedim >::cell_iterator cell_iterator
typename ::Triangulation< dim, spacedim >::active_cell_iterator active_cell_iterator
global_cell_index coarse_cell_id