Reference documentation for deal.II version 9.3.3
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
fully_distributed_tria.h
Go to the documentation of this file.
1// ---------------------------------------------------------------------
2//
3// Copyright (C) 2019 - 2021 by the deal.II authors
4//
5// This file is part of the deal.II library.
6//
7// The deal.II library is free software; you can use it, redistribute
8// it, and/or modify it under the terms of the GNU Lesser General
9// Public License as published by the Free Software Foundation; either
10// version 2.1 of the License, or (at your option) any later version.
11// The full text of the license can be found in the file LICENSE.md at
12// the top level directory of deal.II.
13//
14// ---------------------------------------------------------------------
15
16#ifndef dealii_fully_distributed_tria_h
17#define dealii_fully_distributed_tria_h
18
19
20#include <deal.II/base/config.h>
21
23
25
26#include <vector>
27
28#ifdef DEAL_II_WITH_MPI
29# include <mpi.h>
30#endif
31
33
34// Forward declarations
35#ifndef DOXYGEN
36// forward declaration of the data type for periodic face pairs
37namespace GridTools
38{
39 template <typename CellIterator>
40 struct PeriodicFacePair;
41}
42#endif
43
44namespace parallel
45{
51 namespace fullydistributed
52 {
112 template <int dim, int spacedim = dim>
114 : public parallel::DistributedTriangulationBase<dim, spacedim>
115 {
116 public:
118 typename ::Triangulation<dim, spacedim>::cell_iterator;
119
121 typename ::Triangulation<dim, spacedim>::active_cell_iterator;
122
124 typename ::Triangulation<dim, spacedim>::CellStatus;
125
132 explicit Triangulation(const MPI_Comm &mpi_communicator);
133
137 virtual ~Triangulation() = default;
138
146 void
149 &construction_data) override;
150
157 virtual void
158 create_triangulation(const std::vector<Point<spacedim>> & vertices,
159 const std::vector<::CellData<dim>> &cells,
160 const SubCellData &subcelldata) override;
161
172 void
174 const ::Triangulation<dim, spacedim> &other_tria) override;
175
193 void
195 const std::function<void(::Triangulation<dim, spacedim> &,
196 const unsigned int)> &partitioner,
198
205 virtual void
207
214 virtual bool
216
222 virtual bool
223 has_hanging_nodes() const override;
224
228 virtual std::size_t
229 memory_consumption() const override;
230
231 virtual bool
233
241 virtual void
242 save(const std::string &filename) const override;
243
254 virtual void
255 load(const std::string &filename,
256 const bool autopartition = false) override;
257
258 private:
259 virtual unsigned int
261 const types::coarse_cell_id coarse_cell_id) const override;
262
265 const unsigned int coarse_cell_index) const override;
266
278 virtual void
279 update_cell_relations() override;
280
285
289 std::function<void(::Triangulation<dim, spacedim> &,
290 const unsigned int)>
292
296 std::vector<std::pair<types::coarse_cell_id, unsigned int>>
298
303 std::vector<types::coarse_cell_id>
305
311
316 bool
318 };
319
320 } // namespace fullydistributed
321} // namespace parallel
322
323
325
326#endif
std::vector< Point< spacedim > > vertices
Definition: tria.h:3992
typename ::Triangulation< dim, spacedim >::cell_iterator cell_iterator
typename ::Triangulation< dim, spacedim >::active_cell_iterator active_cell_iterator
typename ::Triangulation< dim, spacedim >::CellStatus CellStatus
TriangulationDescription::Settings settings
std::vector< types::coarse_cell_id > coarse_cell_index_to_coarse_cell_id_vector
virtual types::coarse_cell_id coarse_cell_index_to_coarse_cell_id(const unsigned int coarse_cell_index) const override
void copy_triangulation(const ::Triangulation< dim, spacedim > &other_tria) override
void set_partitioner(const std::function< void(::Triangulation< dim, spacedim > &, const unsigned int)> &partitioner, const TriangulationDescription::Settings &settings)
Triangulation(const MPI_Comm &mpi_communicator)
virtual void load(const std::string &filename, const bool autopartition=false) override
virtual unsigned int coarse_cell_id_to_coarse_cell_index(const types::coarse_cell_id coarse_cell_id) const override
std::vector< std::pair< types::coarse_cell_id, unsigned int > > coarse_cell_id_to_coarse_cell_index_vector
virtual void save(const std::string &filename) const override
std::function< void(::Triangulation< dim, spacedim > &, const unsigned int)> partitioner
virtual bool is_multilevel_hierarchy_constructed() const override
void create_triangulation(const TriangulationDescription::Description< dim, spacedim > &construction_data) override
virtual std::size_t memory_consumption() const override
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:402
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:403
global_cell_index coarse_cell_id
Definition: types.h:114