Reference documentation for deal.II version Git 70d02132d0 2020-07-06 10:39:37 -0400
\(\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\}}\)
Classes | Functions
internal::TriangulationImplementation Namespace Reference

Classes

struct  Implementation
 
struct  Iterators
 
struct  Iterators< 1, spacedim >
 
struct  Iterators< 2, spacedim >
 
struct  Iterators< 3, spacedim >
 
struct  NumberCache
 
struct  NumberCache< 1 >
 
struct  NumberCache< 2 >
 
struct  NumberCache< 3 >
 
class  TriaFaces
 
class  TriaLevel
 
class  TriaObjects
 

Functions

static ::ExceptionBaseExcGridHasInvalidCell (int arg1)
 
static ::ExceptionBaseExcInternalErrorOnCell (int arg1)
 
static ::ExceptionBaseExcCellHasNegativeMeasure (int arg1)
 
static ::ExceptionBaseExcInvalidVertexIndex (int arg1, int arg2, int arg3)
 
static ::ExceptionBaseExcLineInexistant (int arg1, int arg2)
 
static ::ExceptionBaseExcQuadInexistant (int arg1, int arg2, int arg3, int arg4)
 
static ::ExceptionBaseExcInteriorLineCantBeBoundary (int arg1, int arg2, types::boundary_id arg3)
 
static ::ExceptionBaseExcInteriorQuadCantBeBoundary (int arg1, int arg2, int arg3, int arg4, types::boundary_id arg5)
 
static ::ExceptionBaseExcMultiplySetLineInfoOfLine (int arg1, int arg2)
 
static ::ExceptionBaseExcInconsistentLineInfoOfLine (int arg1, int arg2, std::string arg3)
 
static ::ExceptionBaseExcInconsistentQuadInfoOfQuad (int arg1, int arg2, int arg3, int arg4, std::string arg5)
 
void reserve_space (TriaFaces &tria_faces, const unsigned int new_quads_in_pairs, const unsigned int new_quads_single)
 
void reserve_space (TriaLevel &tria_level, const unsigned int total_cells, const unsigned int dimension, const unsigned int space_dimension)
 
static ::ExceptionBaseExcMemoryInexact (int arg1, int arg2)
 
void monitor_memory (const TriaLevel &tria_level, const unsigned int true_dimension)
 
void reserve_space (TriaObjects &tria_objects, const unsigned int new_objects_in_pairs, const unsigned int new_objects_single=0)
 
void monitor_memory (const TriaObjects &tria_object, const unsigned int)
 
template<int dim, int spacedim>
const Manifold< dim, spacedim > & get_default_flat_manifold ()
 
unsigned int n_cells (const internal::TriangulationImplementation::NumberCache< 1 > &c)
 
unsigned int n_active_cells (const internal::TriangulationImplementation::NumberCache< 1 > &c)
 
unsigned int n_cells (const internal::TriangulationImplementation::NumberCache< 2 > &c)
 
unsigned int n_active_cells (const internal::TriangulationImplementation::NumberCache< 2 > &c)
 
unsigned int n_cells (const internal::TriangulationImplementation::NumberCache< 3 > &c)
 
unsigned int n_active_cells (const internal::TriangulationImplementation::NumberCache< 3 > &c)
 

Detailed Description

A namespace for classes internal to the triangulation classes and helpers.

Function Documentation

◆ reserve_space() [1/3]

void internal::TriangulationImplementation::reserve_space ( TriaFaces tria_faces,
const unsigned int  new_quads_in_pairs,
const unsigned int  new_quads_single 
)

Definition at line 1304 of file tria.cc.

◆ reserve_space() [2/3]

void internal::TriangulationImplementation::reserve_space ( TriaLevel tria_level,
const unsigned int  total_cells,
const unsigned int  dimension,
const unsigned int  space_dimension 
)

Reserve space for TriaLevel. Details:

Reserve enough space to accommodate total_cells cells on this level. Since there are no used flags on this level, you have to give the total number of cells, not only the number of newly to accommodate ones, like in the TriaLevel<N>::reserve_space functions, with N>0.

Since the number of neighbors per cell depends on the dimensions, you have to pass that additionally.

Definition at line 1385 of file tria.cc.

◆ monitor_memory() [1/2]

void internal::TriangulationImplementation::monitor_memory ( const TriaLevel tria_level,
const unsigned int  true_dimension 
)

Check the memory consistency of the different containers. Should only be called with the preprocessor flag DEBUG set. The function should be called from the functions of the higher TriaLevel classes.

Definition at line 1482 of file tria.cc.

◆ reserve_space() [3/3]

void internal::TriangulationImplementation::reserve_space ( TriaObjects tria_objects,
const unsigned int  new_objects_in_pairs,
const unsigned int  new_objects_single = 0 
)

Reserve space for TriaObjects. Details:

Assert that enough space is allocated to accommodate new_objs_in_pairs new objects, stored in pairs, plus new_obj_single stored individually. This function does not only call vector::reserve(), but does really append the needed elements.

In 2D e.g. refined lines have to be stored in pairs, whereas new lines in the interior of refined cells can be stored as single lines.

Definition at line 1512 of file tria.cc.

◆ monitor_memory() [2/2]

void internal::TriangulationImplementation::monitor_memory ( const TriaObjects tria_object,
const unsigned  int 
)

Check the memory consistency of the different containers. Should only be called with the preprocessor flag DEBUG set. The function should be called from the functions of the higher TriaLevel classes.

Definition at line 1724 of file tria.cc.

◆ get_default_flat_manifold()

template<int dim, int spacedim>
const Manifold<dim, spacedim>& internal::TriangulationImplementation::get_default_flat_manifold ( )

Definition at line 10308 of file tria.cc.

◆ n_cells() [1/3]

unsigned int internal::TriangulationImplementation::n_cells ( const internal::TriangulationImplementation::NumberCache< 1 > &  c)
inline

Definition at line 12833 of file tria.cc.

◆ n_active_cells() [1/3]

unsigned int internal::TriangulationImplementation::n_active_cells ( const internal::TriangulationImplementation::NumberCache< 1 > &  c)
inline

Definition at line 12840 of file tria.cc.

◆ n_cells() [2/3]

unsigned int internal::TriangulationImplementation::n_cells ( const internal::TriangulationImplementation::NumberCache< 2 > &  c)
inline

Definition at line 12848 of file tria.cc.

◆ n_active_cells() [2/3]

unsigned int internal::TriangulationImplementation::n_active_cells ( const internal::TriangulationImplementation::NumberCache< 2 > &  c)
inline

Definition at line 12855 of file tria.cc.

◆ n_cells() [3/3]

unsigned int internal::TriangulationImplementation::n_cells ( const internal::TriangulationImplementation::NumberCache< 3 > &  c)
inline

Definition at line 12863 of file tria.cc.

◆ n_active_cells() [3/3]

unsigned int internal::TriangulationImplementation::n_active_cells ( const internal::TriangulationImplementation::NumberCache< 3 > &  c)
inline

Definition at line 12870 of file tria.cc.