v0.16.3
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | Friends | List of all members
MoFEM::NumeredDofEntity Struct Reference

keeps information about indexed dofs for the problem More...

#include "src/multi_indices/DofsMultiIndices.hpp"

Inheritance diagram for MoFEM::NumeredDofEntity:
[legend]
Collaboration diagram for MoFEM::NumeredDofEntity:
[legend]

Public Types

using interface_type_Field = interface_FieldImpl< DofEntity, DofEntity >
 
using interface_type_FieldEntity = interface_FieldEntity< DofEntity >
 
using interface_type_DofEntity = interface_DofEntity< DofEntity >
 
using interface_type_RefEntity = interface_RefEntity< DofEntity >
 
- Public Types inherited from MoFEM::interface_Field< T, T >
using interface_type_FieldImpl = interface_FieldImpl< T, T >
 
- Public Types inherited from MoFEM::interface_FieldImpl< T, T >
using interface_type_RefEntity = interface_RefEntity< T >
 

Public Member Functions

virtual ~NumeredDofEntity ()=default
 
DofIdx getPetscGlobalDofIdx () const
 
DofIdx getPetscLocalDofIdx () const
 
unsigned int getPart () const
 
bool getHasLocalIndex () const
 
 NumeredDofEntity (const boost::shared_ptr< DofEntity > &dof_entity_ptr, const int petsc_gloabl_dof_idx=-1, const int petsc_local_dof_idx=-1, const int part=-1)
 
- Public Member Functions inherited from MoFEM::interface_DofEntity< DofEntity >
virtual ~interface_DofEntity ()=default
 
 interface_DofEntity (const boost::shared_ptr< DofEntity > &sptr)
 
UId getGlobalUniqueId () const
 
UId getEntGlobalUniqueId () const
 
UId getLocalUniqueId () const
 
const UId & getEntLocalUniqueId () const
 
ShortId getNonNonuniqueShortId () const
 
DofIdx getEntDofIdx () const
 
FieldData & getFieldData () const
 
EntityHandle getEnt () const
 
ApproximationOrder getDofOrder () const
 
FieldCoefficientsNumber getDofCoeffIdx () const
 
char getActive () const
 
boost::shared_ptr< DofEntity > & getDofEntityPtr () const
 
boost::shared_ptr< FieldEntity > & getFieldEntityPtr () const
 
- Public Member Functions inherited from MoFEM::interface_FieldEntity< T >
 interface_FieldEntity (const boost::shared_ptr< T > &sptr)
 
int getNbDofsOnEnt () const
 
VectorAdaptor getEntFieldData () const
 
int getOrderNbDofs (ApproximationOrder order) const
 
int getOrderNbDofsDiff (ApproximationOrder order) const
 
ApproximationOrder getMaxOrder () const
 
UId getGlobalUniqueId () const
 
UId & getLocalUniqueId () const
 
boost::shared_ptr< RefEntity > & getRefEntityPtr () const
 
boost::shared_ptr< FieldEntity > & getFieldEntityPtr () const
 
const std::array< int, MAX_DOFS_ON_ENTITY > & getDofOrderMap () const
 get hash-map relating dof index on entity with its order
 
template<typename S = EntityStorage>
boost::shared_ptr< S > getSharedStoragePtr () const
 Get the Weak Storage pointer.
 
boost::weak_ptr< EntityStorage > & getWeakStoragePtr () const
 
- Public Member Functions inherited from MoFEM::interface_Field< T, T >
 interface_Field (const boost::shared_ptr< T > &ptr)
 Constructor.
 
EntityHandle getMeshset () const
 Get field meshset handle.
 
const BitFieldId & getId () const
 Get field ID.
 
boost::string_ref getNameRef () const
 Get field name reference.
 
std::string getName () const
 Get field name.
 
FieldSpace getSpace () const
 Get approximation space.
 
auto getSpaceName () const
 Get approximation space name.
 
FieldApproximationBase getApproxBase () const
 Get approximation basis.
 
auto getApproxBaseName () const
 Get approximation basis name.
 
FieldCoefficientsNumber getNbOfCoeffs () const
 Get number of coefficients per DOF.
 
FieldBitNumber getBitNumber () const
 Get bit number for field ID.
 
std::array< ApproximationOrder, MAX_DOFS_ON_ENTITY > & getDofOrderMap (const EntityType type) const
 Get DOF order mapping for entity type.
 
const Field * getFieldRawPtr () const
 Get raw field pointer.
 
- Public Member Functions inherited from MoFEM::interface_FieldImpl< T, T >
 interface_FieldImpl (const boost::shared_ptr< T > &field_ptr, const boost::shared_ptr< T > &ref_ents_ptr)
 Constructor with field and reference entity pointers.
 
virtual ~interface_FieldImpl ()=default
 Virtual destructor.
 
- Public Member Functions inherited from MoFEM::interface_RefEntity< T >
 interface_RefEntity (const boost::shared_ptr< T > &sptr)
 
 interface_RefEntity (const interface_RefEntity< T > &interface)
 
virtual ~interface_RefEntity ()=default
 
int getSideNumber () const
 
boost::shared_ptr< SideNumber > getSideNumberPtr () const
 
const boost::shared_ptr< BasicEntityData > getBasicDataPtr () const
 
EntityHandle getEnt () const
 
EntityType getParentEntType () const
 
EntityHandle getParentEnt () const
 
BitRefLevel * getBitRefLevelPtr () const
 
const BitRefLevel & getBitRefLevel () const
 
unsigned long int getBitRefLevelULong () const
 
EntityType getEntType () const
 
int getEntDimension () const
 
const char * getEntTypeName () const
 
EntityID getEntId () const
 
EntityHandle getOwnerEnt () const
 
EntityHandle & getOwnerEnt ()
 
int getOwnerProc () const
 
int getOwnerProc (ParallelComm *pcomm) const
 
int getPartProc () const
 
int * getPartProcPtr () const
 
unsigned char getPStatus () const
 
unsigned char getPStatus (ParallelComm *pcomm) const
 
int * getSharingProcsPtr () const
 
int * getSharingProcsPtr (ParallelComm *pcomm) const
 
EntityHandle * getSharingHandlersPtr () const
 
boost::shared_ptr< T > & getRefEntityPtr () const
 

Public Attributes

DofIdx petscGloablDofIdx
 
DofIdx petscLocalDofIdx
 
unsigned int pArt
 
- Public Attributes inherited from MoFEM::interface_RefEntity< T >
boost::shared_ptr< T > sPtr
 

Friends

std::ostream & operator<< (std::ostream &os, const NumeredDofEntity &e)
 

Detailed Description

keeps information about indexed dofs for the problem

A numbered DOF carries its part and its PETSc global and local indices. Before a replicated problem is partitioned the global index is provisional: the insertion (UID) order, the same on every rank.

FIXME: Is too many iterator, this has to be manage more efficiently, some iterators could be moved to multi_indices views.

Examples
mofem/atom_tests/build_problems.cpp, and mofem/atom_tests/operators_tester_direction.cpp.

Definition at line 232 of file DofsMultiIndices.hpp.

Member Typedef Documentation

◆ interface_type_DofEntity

Definition at line 238 of file DofsMultiIndices.hpp.

◆ interface_type_Field

Definition at line 236 of file DofsMultiIndices.hpp.

◆ interface_type_FieldEntity

Definition at line 237 of file DofsMultiIndices.hpp.

◆ interface_type_RefEntity

Definition at line 239 of file DofsMultiIndices.hpp.

Constructor & Destructor Documentation

◆ ~NumeredDofEntity()

virtual MoFEM::NumeredDofEntity::~NumeredDofEntity ( )
virtualdefault

◆ NumeredDofEntity()

MoFEM::NumeredDofEntity::NumeredDofEntity ( const boost::shared_ptr< DofEntity > &  dof_entity_ptr,
const int  petsc_gloabl_dof_idx = -1,
const int  petsc_local_dof_idx = -1,
const int  part = -1 
)

Definition at line 66 of file DofsMultiIndices.cpp.

72 : interface_DofEntity<DofEntity>(dof_entity_ptr),
73 petscGloablDofIdx(petsc_gloabl_dof_idx),
74 petscLocalDofIdx(petsc_local_dof_idx), pArt(part) {
75}

Member Function Documentation

◆ getHasLocalIndex()

bool MoFEM::NumeredDofEntity::getHasLocalIndex ( ) const
inline
Returns
True if local index is set

Definition at line 255 of file DofsMultiIndices.hpp.

255 {
256 return !std::signbit(petscLocalDofIdx);
257 }

◆ getPart()

unsigned int MoFEM::NumeredDofEntity::getPart ( ) const
inline
Returns
Owning partition (i.e. process/processor)

Definition at line 252 of file DofsMultiIndices.hpp.

252{ return pArt; }

◆ getPetscGlobalDofIdx()

DofIdx MoFEM::NumeredDofEntity::getPetscGlobalDofIdx ( ) const
inline
Returns
PETSc global DoF index

Definition at line 246 of file DofsMultiIndices.hpp.

246{ return petscGloablDofIdx; }

◆ getPetscLocalDofIdx()

DofIdx MoFEM::NumeredDofEntity::getPetscLocalDofIdx ( ) const
inline
Returns
PETSc local DoF index

Definition at line 249 of file DofsMultiIndices.hpp.

249{ return petscLocalDofIdx; }

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const NumeredDofEntity &  e 
)
friend

Definition at line 77 of file DofsMultiIndices.cpp.

77 {
78 os << "part " << e.pArt << " petsc idx "
79 << e.petscGloablDofIdx << " ( " << e.petscLocalDofIdx << " ) "
80 << *e.getFieldEntityPtr();
81 return os;
82}

Member Data Documentation

◆ pArt

unsigned int MoFEM::NumeredDofEntity::pArt

Definition at line 243 of file DofsMultiIndices.hpp.

◆ petscGloablDofIdx

DofIdx MoFEM::NumeredDofEntity::petscGloablDofIdx

Definition at line 241 of file DofsMultiIndices.hpp.

◆ petscLocalDofIdx

DofIdx MoFEM::NumeredDofEntity::petscLocalDofIdx

Definition at line 242 of file DofsMultiIndices.hpp.


The documentation for this struct was generated from the following files: