version GIT relicensing-7278-g091132d5eb 2026-12-02 03:10:01+00:00
\(\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\}}\)
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
parallel::DefaultTriangulation< dim, spacedim > Class Template Reference

#include <deal.II/distributed/default_tria.h>

Detailed Description

template<int dim, int spacedim = dim>
class parallel::DefaultTriangulation< dim, spacedim >

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.

Note
This class, function, or variable is a template, and it can only be instantiated if the following condition is true: If your compiler supports the C++20 standard, then this constraint will be enforced by a C++20 requires clause.

Definition at line 132 of file default_tria.h.

Inheritance diagram for parallel::DefaultTriangulation< dim, spacedim >:
[legend]

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)
 

Member Typedef Documentation

◆ Base

template<int dim, int spacedim = dim>
using parallel::DefaultTriangulation< dim, spacedim >::Base = internal::DefaultTriangulationImpl<dim, spacedim>

Definition at line 136 of file default_tria.h.

Constructor & Destructor Documentation

◆ DefaultTriangulation()

template<int dim, int spacedim>
parallel::DefaultTriangulation< dim, spacedim >::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 
)
explicit

Constructor.

Parameters
mpi_communicatorThe MPI communicator over which this triangulation is distributed.
smooth_gridThe mesh smoothing flag passed to the underlying triangulation class.
check_for_distorted_cellsWhether 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.


The documentation for this class was generated from the following files: