|
version GIT relicensing-7278-g091132d5eb 2026-12-02 03:10:01+00:00
|
#include <deal.II/distributed/default_tria.h>
A triangulation type that selects the most capable parallel mesh implementation available in the current build configuration.
Depending on how deal.II was configured, this class is derived from
if MPI support is disabled,
if both MPI and p4est are available and dim is greater than one, and
if MPI is available and either p4est is not available or dim is one. The p4est-based triangulation does not support one dimension. In the last case, artificial cells are enabled by default so that the mesh offers a layer of ghost and artificial cells similar to parallel::distributed::Triangulation.
The class provides a uniform constructor that takes an MPI communicator when deal.II is configured with MPI. If MPI support is disabled, the communicator argument is ignored and a serial triangulation is built. This allows user code to instantiate a mesh object without selecting the concrete triangulation class at compile time. For features that are only available on particular triangulation classes, such as parallel::distributed::Triangulation::save(), use dynamic_cast to the desired type after checking which implementation is available.
Definition at line 132 of file default_tria.h.
Public Types | |
| using | Base = internal::DefaultTriangulationImpl< dim, spacedim > |
Public Member Functions | |
| DefaultTriangulation (const MPI_Comm mpi_communicator, const typename ::Triangulation< dim, spacedim >::MeshSmoothing smooth_grid=(::Triangulation< dim, spacedim >::none), const bool check_for_distorted_cells=false) | |
| using parallel::DefaultTriangulation< dim, spacedim >::Base = internal::DefaultTriangulationImpl<dim, spacedim> |
Definition at line 136 of file default_tria.h.
|
explicit |
Constructor.
| mpi_communicator | The MPI communicator over which this triangulation is distributed. |
| smooth_grid | The mesh smoothing flag passed to the underlying triangulation class. |
| check_for_distorted_cells | Whether to check for distorted cells upon mesh creation and refinement. This argument is only used by the serial triangulation class selected when MPI support is disabled. |
Definition at line 161 of file default_tria.h.