Reference documentation for deal.II version 9.6.0
\(\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
internal::TriangulationImplementation::NumberCache< 3 > Struct Reference

#include <deal.II/grid/tria.h>

Inheritance diagram for internal::TriangulationImplementation::NumberCache< 3 >:

Public Member Functions

 NumberCache ()
 
std::size_t memory_consumption () const
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Public Attributes

unsigned int n_hexes
 
std::vector< unsigned intn_hexes_level
 
unsigned int n_active_hexes
 
std::vector< unsigned intn_active_hexes_level
 
unsigned int n_quads
 
std::vector< unsigned intn_quads_level
 
unsigned int n_active_quads
 
std::vector< unsigned intn_active_quads_level
 
unsigned int n_levels
 
unsigned int n_lines
 
std::vector< unsigned intn_lines_level
 
unsigned int n_active_lines
 
std::vector< unsigned intn_active_lines_level
 
std::shared_ptr< const Utilities::MPI::Partitioneractive_cell_index_partitioner
 
std::vector< std::shared_ptr< const Utilities::MPI::Partitioner > > level_cell_index_partitioners
 

Detailed Description

Cache class used to store the number of used and active elements (lines or quads etc) within the levels of a triangulation. This specialization stores the numbers of hexes. Due to the inheritance from the base class NumberCache<2>, the numbers of lines and quads are also within this class.

In the old days, whenever one wanted to access one of these numbers, one had to perform a loop over all lines, e.g., and count the elements until we hit the end . This is time consuming and since access to the number of lines etc is a rather frequent operation, this was not an optimal solution.

Definition at line 287 of file tria.h.

Constructor & Destructor Documentation

◆ NumberCache()

Constructor. Set values to zero by default.

Definition at line 111 of file tria.cc.

Member Function Documentation

◆ memory_consumption()

std::size_t internal::TriangulationImplementation::NumberCache< 3 >::memory_consumption ( ) const

Determine an estimate for the memory consumption (in bytes) of this object.

Definition at line 121 of file tria.cc.

◆ serialize()

template<class Archive >
void internal::TriangulationImplementation::NumberCache< 3 >::serialize ( Archive & ar,
const unsigned int version )

Read or write the data of this object to or from a stream for the purpose of serialization using the BOOST serialization library.

Member Data Documentation

◆ n_hexes

Number of used hexes in the whole triangulation.

Definition at line 292 of file tria.h.

◆ n_hexes_level

std::vector<unsigned int> internal::TriangulationImplementation::NumberCache< 3 >::n_hexes_level

Array holding the number of used hexes on each level.

Definition at line 297 of file tria.h.

◆ n_active_hexes

Number of active hexes in the whole triangulation.

Definition at line 302 of file tria.h.

◆ n_active_hexes_level

std::vector<unsigned int> internal::TriangulationImplementation::NumberCache< 3 >::n_active_hexes_level

Array holding the number of active hexes on each level.

Definition at line 307 of file tria.h.

◆ n_quads

unsigned int internal::TriangulationImplementation::NumberCache< 2 >::n_quads
inherited

Number of used quads in the whole triangulation.

Definition at line 233 of file tria.h.

◆ n_quads_level

std::vector<unsigned int> internal::TriangulationImplementation::NumberCache< 2 >::n_quads_level
inherited

Array holding the number of used quads on each level.

Definition at line 238 of file tria.h.

◆ n_active_quads

unsigned int internal::TriangulationImplementation::NumberCache< 2 >::n_active_quads
inherited

Number of active quads in the whole triangulation.

Definition at line 243 of file tria.h.

◆ n_active_quads_level

std::vector<unsigned int> internal::TriangulationImplementation::NumberCache< 2 >::n_active_quads_level
inherited

Array holding the number of active quads on each level.

Definition at line 248 of file tria.h.

◆ n_levels

unsigned int internal::TriangulationImplementation::NumberCache< 1 >::n_levels
inherited

The number of levels on which we have used objects.

Definition at line 158 of file tria.h.

◆ n_lines

unsigned int internal::TriangulationImplementation::NumberCache< 1 >::n_lines
inherited

Number of used lines in the whole triangulation.

Definition at line 163 of file tria.h.

◆ n_lines_level

std::vector<unsigned int> internal::TriangulationImplementation::NumberCache< 1 >::n_lines_level
inherited

Array holding the number of used lines on each level.

Definition at line 168 of file tria.h.

◆ n_active_lines

unsigned int internal::TriangulationImplementation::NumberCache< 1 >::n_active_lines
inherited

Number of active lines in the whole triangulation.

Definition at line 173 of file tria.h.

◆ n_active_lines_level

std::vector<unsigned int> internal::TriangulationImplementation::NumberCache< 1 >::n_active_lines_level
inherited

Array holding the number of active lines on each level.

Definition at line 178 of file tria.h.

◆ active_cell_index_partitioner

std::shared_ptr<const Utilities::MPI::Partitioner> internal::TriangulationImplementation::NumberCache< 1 >::active_cell_index_partitioner
inherited

Partitioner for the global active cell indices.

Definition at line 184 of file tria.h.

◆ level_cell_index_partitioners

std::vector<std::shared_ptr<const Utilities::MPI::Partitioner> > internal::TriangulationImplementation::NumberCache< 1 >::level_cell_index_partitioners
inherited

Partitioner for the global level cell indices for each level.

Definition at line 190 of file tria.h.


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