ug4
neighborhood_util.h
Go to the documentation of this file.
1 
33 #ifndef __H__LIB_GRID__NEIGHBORHOOD_UTIL__
34 #define __H__LIB_GRID__NEIGHBORHOOD_UTIL__
35 
36 #include "grid.h"
37 
38 namespace ug {
39 
47 template <typename TBaseElem>
48 TBaseElem* GetConnectedNeighbor(Grid& g, typename TBaseElem::side* face, TBaseElem* elem);
49 
59 template <typename TElem>
60 void GetNeighborhood
61 (
62  Grid& grid,
63  size_t extSize,
64  TElem* elem,
65  typename geometry_traits<TElem>::const_iterator& begin,
66  typename geometry_traits<TElem>::const_iterator& end
67 );
68 
69 } // namespace ug
70 
72 
73 #endif // __H__LIB_GRID__NEIGHBORHOOD_UTIL__
void GetNeighborhood(const TSparseMatrix &A, size_t node, size_t depth, std::vector< size_t > &indices, std::vector< bool > &bVisited, bool bResetVisitedFlags=true)
Definition: sparsematrix_util.h:495
base_type::TBaseElem TBaseElem
the ug namespace
TBaseElem * GetConnectedNeighbor(Grid &g, typename TBaseElem::side *face, TBaseElem *elem)
Finds the neighbor connected through a side.
Definition: neighborhood_util.cpp:40