MFEM  v4.5.2
Finite element discretization library
Classes | Namespaces | Functions
submesh_utils.hpp File Reference

Go to the source code of this file.

Classes

struct  mfem::SubMeshUtils::UniqueIndexGenerator
 Convenience object to create unique indices. More...
 

Namespaces

 mfem
 
 mfem::SubMeshUtils
 

Functions

bool mfem::SubMeshUtils::ElementHasAttribute (const Element &el, const Array< int > &attributes)
 Given an element el and a list of attributes, determine if that element is in at least one attribute of attributes. More...
 
std::tuple< Array< int >, Array< int > > mfem::SubMeshUtils::AddElementsToMesh (const Mesh &parent, Mesh &mesh, const Array< int > &attributes, bool from_boundary=false)
 Given a Mesh parent and another Mesh mesh using the list of attributes in attributes, this function adds matching elements with those attributes from parent to mesh. More...
 
Array< int > mfem::SubMeshUtils::BuildFaceMap (const Mesh &parent, const Mesh &mesh, const Array< int > &parent_element_ids)
 Given two meshes that have a parent to SubMesh relationship create a face map, using a SubMesh to parent Mesh element id map. More...
 
void mfem::SubMeshUtils::BuildVdofToVdofMap (const FiniteElementSpace &subfes, const FiniteElementSpace &parentfes, const SubMesh::From &from, const Array< int > &parent_element_ids, Array< int > &vdof_to_vdof_map)
 Build the vdof to vdof mapping between two FiniteElementSpace objects. More...
 
template<class T , class RT = decltype(std::declval<T>().GetParent())>
RT mfem::SubMeshUtils::GetRootParent (const T &m)
 Identify the root parent of a given SubMesh. More...