20 #ifndef LIBMESH_PATCH_H 21 #define LIBMESH_PATCH_H 24 #include "libmesh/id_types.h" 47 class Patch :
public std::set<const Elem *>
114 const unsigned int target_patch_size = 10,
137 #endif // LIBMESH_PATCH_H This class implements useful utility functions for a patch of elements.
void add_local_point_neighbors()
This function finds all elements on the current processor which touch the current patch at any point...
This is the base class from which all geometric element types are derived.
Patch(const processor_id_type my_procid=static_cast< processor_id_type >(-1))
Constructor.
The libMesh namespace provides an interface to certain functionality in the library.
void build_around_element(const Elem *elem, const unsigned int target_patch_size=10, PMF patchtype=&Patch::add_local_face_neighbors)
Erases any elements in the current patch, then builds a new patch containing element elem by repeated...
uint8_t processor_id_type
void find_face_neighbors(std::set< const Elem *> &neighbor_set)
This function finds all elements which touch the current patch at a face.
void add_point_neighbors()
This function finds all elements which touch the current patch at any point, and adds them to the pat...
void add_semilocal_point_neighbors()
This function finds all elements which touch the current patch at any point and which touch one of ou...
void add_local_face_neighbors()
This function finds all elements on the current processor which touch the current patch at a face...
void find_point_neighbors(std::set< const Elem *> &neighbor_set)
This function finds all elements which touch the current patch at any point.
void(Patch::* PMF)()
Pointer to Member Function typedef.
void add_face_neighbors()
This function finds all elements which touch the current patch at a face, and adds them to the patch...
void add_semilocal_face_neighbors()
This function finds all elements which touch the current patch at a face and which touch one of our p...
~Patch()=default
Destructor.
const processor_id_type _my_procid