Reference documentation for deal.II version 8.4.2
Classes | Functions
internal::GridReordering2d Namespace Reference

Classes

class  ConnectGlobals
 
struct  Edge
 
class  GridReordering
 
class  MQuad
 
struct  MSide
 
struct  QuadSide
 

Functions

bool is_consistent (const std::vector< CellData< 2 > > &cells)
 
MSide quadside (const CellData< 2 > &q, unsigned int i)
 

Detailed Description

Implement the algorithm described in the documentation of the GridReordering<2> class.

Author
Michael Anderson, 2003

Function Documentation

§ is_consistent()

bool internal::GridReordering2d::is_consistent ( const std::vector< CellData< 2 > > &  cells)

Check whether a given arrangement of cells is already consistent. If this is the case, then we skip the reordering pass.

This function works by looping over all cells, checking whether one of its faces already exists in a list of edges, and if it already exists in reverse order, then return false. If it is not already in the list, or in the correct direction, then go on with the next faces or cell.

Definition at line 127 of file grid_reordering.cc.

§ quadside()

MSide internal::GridReordering2d::quadside ( const CellData< 2 > &  q,
unsigned int  i 
)

Returns an MSide corresponding to the specified side of a deal.II CellData<2> object.

Definition at line 223 of file grid_reordering.cc.