Feel++ 0.111.0-preview.14
Finite Element Embedded Library in C++
Feel::CreateSubmeshTool< MeshType, IteratorRange > Class Template Reference
+ Inheritance diagram for Feel::CreateSubmeshTool< MeshType, IteratorRange >:
+ Collaboration diagram for Feel::CreateSubmeshTool< MeshType, IteratorRange >:

Public Types

using idim_type = typename range_type::idim_t
 
using index_type = typename mesh_type::index_type
 
using iterator_type = typename range_type::iterator_t
 
using mesh_ptrtype = std::shared_ptr< mesh_type >
 
using mesh_type = MeshType
 
using range_mesh_type = typename range_type::mesh_t
 
using range_type = IteratorRange
 
using size_type = typename mesh_type::size_type
 
typedef std::shared_ptr< smd_type > smd_ptrtype
 
typedef SubMeshData smd_type
 
using value_type = typename mesh_type::value_type
 

Public Member Functions

mesh_ptrtype build (size_type ctx)
 build mesh using Context ctx More...
 
 CreateSubmeshTool (CreateSubmeshTool &&t)=default
 
 CreateSubmeshTool (CreateSubmeshTool const &t)=default
 
 CreateSubmeshTool (IteratorRange const &range, worldcomm_ptr_t const &wc, size_type updateComponentsMesh)
 
 CreateSubmeshTool (std::list< IteratorRange > const &range, worldcomm_ptr_t const &wc, size_type updateComponentsMesh)
 
CreateSubmeshTool & operator= (CreateSubmeshTool &&t)=default
 
CreateSubmeshTool & operator= (CreateSubmeshTool const &t)=default
 
void setIsView (bool b)
 
smd_ptrtype subMeshData ()
 
bool subMeshIsOnBoundaryFaces () const
 
void subMeshIsOnBoundaryFaces (bool b)
 
size_type updateComponentsMesh () const
 
- Public Member Functions inherited from Feel::CommObject
WorldComm const & comm () const
 
 CommObject (CommObject &&)=default
 
 CommObject (CommObject const &)=default
 
 CommObject (worldcomm_ptr_t &w)
 
 CommObject (worldcomm_ptr_t const &w)
 
bool hasWorldComm () const
 returns true if worldcomm is allocated, false othewise
 
CommObject & operator= (CommObject &&)=default
 
CommObject & operator= (CommObject const &)=default
 
virtual void setWorldComm (worldcomm_ptr_t const &w)
 
virtual void setWorldComm (worldcomm_t &w)
 
worldcomm_ptr_t & subWorldCommSeqPtr ()
 
worldcomm_ptr_t const & subWorldCommSeqPtr () const
 
WorldComm & worldComm ()
 
WorldComm const & worldComm () const
 
worldcomm_ptr_t & worldCommPtr ()
 
worldcomm_ptr_t const & worldCommPtr () const
 

Member Function Documentation

◆ build()

template<typename MeshType , typename IteratorRange >
mesh_ptrtype Feel::CreateSubmeshTool< MeshType, IteratorRange >::build ( size_type  ctx)

build mesh using Context ctx

if ctx has the bit EXTRACTION_KEEP_MESH_RELATION set then sub mesh data is added to the mesh

References Feel::CommObject::worldCommPtr().

◆ subMeshData()

template<typename MeshType , typename IteratorRange >
smd_ptrtype Feel::CreateSubmeshTool< MeshType, IteratorRange >::subMeshData ( )
Returns
submesh data such as the parent element to which the generated mesh elements are associated.

this allows to improve tremendously the performance of interpolation operators between meshes with relation