v0.14.0
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_FieldImpl< DofEntity, DofEntity >
using interface_type_RefEntity = interface_RefEntity< DofEntity >
 

Public Member Functions

virtual ~NumeredDofEntity ()=default
 
DofIdx getDofIdx () const
 
DofIdx getPetscGlobalDofIdx () const
 
DofIdx getPetscLocalDofIdx () const
 
unsigned int getPart () const
 
bool getHasLocalIndex () const
 
 NumeredDofEntity (const boost::shared_ptr< DofEntity > &dof_entity_ptr, const int dof_idx=-1, 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
 
const UIdgetEntGlobalUniqueId () const
 
UId getLocalUniqueId () const
 
const UIdgetEntLocalUniqueId () const
 
ShortId getNonNonuniqueShortId () const
 
DofIdx getEntDofIdx () const
 
FieldDatagetFieldData () 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< DofEntity >
 interface_FieldEntity (const boost::shared_ptr< DofEntity > &sptr)
 
int getNbDofsOnEnt () const
 
VectorAdaptor getEntFieldData () const
 
int getOrderNbDofs (ApproximationOrder order) const
 
int getOrderNbDofsDiff (ApproximationOrder order) const
 
ApproximationOrder getMaxOrder () const
 
UId getGlobalUniqueId () const
 
UIdgetLocalUniqueId () 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 More...
 
boost::shared_ptr< S > getSharedStoragePtr () const
 
boost::weak_ptr< EntityStorage > & getWeakStoragePtr () const
 
- Public Member Functions inherited from MoFEM::interface_Field< DofEntity, DofEntity >
 interface_Field (const boost::shared_ptr< DofEntity > &field_ptr, const boost::shared_ptr< DofEntity > &ref_ents_ptr)
 
EntityHandle getMeshset () const
 
int getCoordSysDim (const int d=0) const
 
const BitFieldIdgetId () const
 
boost::string_ref getNameRef () const
 
std::string getName () const
 
FieldSpace getSpace () const
 
FieldApproximationBase getApproxBase () const
 
FieldContinuity getContinuity () const
 
auto getContinuityName () const
 
FieldCoefficientsNumber getNbOfCoeffs () const
 
FieldBitNumber getBitNumber () const
 
std::array< ApproximationOrder, MAX_DOFS_ON_ENTITY > & getDofOrderMap (const EntityType type) const
 get hash-map relating dof index on entity with its order More...
 
const FieldgetFieldRawPtr () const
 
FieldOrderTable & getFieldOrderTable ()
 
auto & getDofSideMap ()
 
- Public Member Functions inherited from MoFEM::interface_FieldImpl< DofEntity, DofEntity >
 interface_FieldImpl (const boost::shared_ptr< DofEntity > &field_ptr, const boost::shared_ptr< DofEntity > &ref_ents_ptr)
 
virtual ~interface_FieldImpl ()=default
 
- Public Member Functions inherited from MoFEM::interface_RefEntity< DofEntity >
 interface_RefEntity (const boost::shared_ptr< DofEntity > &sptr)
 
 interface_RefEntity (const interface_RefEntity< DofEntity > &interface)
 
virtual ~interface_RefEntity ()=default
 
int getSideNumber () const
 
boost::shared_ptr< SideNumbergetSideNumberPtr () const
 Get the Side number. More...
 
const boost::shared_ptr< BasicEntityDatagetBasicDataPtr () const
 Get pointer to basic data struture. More...
 
EntityHandle getEnt () const
 Get the entity handle. More...
 
EntityType getParentEntType () const
 Get patent entity. More...
 
EntityHandle getParentEnt () const
 
BitRefLevelgetBitRefLevelPtr () const
 Get pointer to bit ref level tag. More...
 
const BitRefLevelgetBitRefLevel () const
 
unsigned long int getBitRefLevelULong () const
 Get entity ref bit refinement as ulong. More...
 
EntityType getEntType () const
 Get entity type. More...
 
int getEntDimension () const
 Get the Ent Dimension. More...
 
const char * getEntTypeName () const
 Get the Ent Type Name. More...
 
EntityID getEntId () const
 get entity id More...
 
EntityHandle getOwnerEnt () const
 
EntityHandlegetOwnerEnt ()
 
int getOwnerProc () const
 
int getPartProc () const
 
int * getPartProcPtr () const
 Get pointer to partition tag. More...
 
unsigned char getPStatus () const
 
int * getSharingProcsPtr () const
 get shared processors More...
 
EntityHandlegetSharingHandlersPtr () const
 get sharid entity handlers More...
 
boost::shared_ptr< DofEntity > & getRefEntityPtr () const
 

Public Attributes

DofIdx dofIdx
 
DofIdx petscGloablDofIdx
 
DofIdx petscLocalDofIdx
 
unsigned int pArt
 
- Public Attributes inherited from MoFEM::interface_RefEntity< DofEntity >
boost::shared_ptr< DofEntitysPtr
 

Friends

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

Detailed Description

keeps information about indexed dofs for the problem

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

Definition at line 226 of file DofsMultiIndices.hpp.

Member Typedef Documentation

◆ interface_type_DofEntity

Definition at line 232 of file DofsMultiIndices.hpp.

◆ interface_type_Field

Definition at line 230 of file DofsMultiIndices.hpp.

◆ interface_type_FieldEntity

Definition at line 231 of file DofsMultiIndices.hpp.

◆ interface_type_RefEntity

Definition at line 233 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  dof_idx = -1,
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), dofIdx(dof_idx),
73  petscGloablDofIdx(petsc_gloabl_dof_idx),
74  petscLocalDofIdx(petsc_local_dof_idx), pArt(part) {
75 }

Member Function Documentation

◆ getDofIdx()

DofIdx MoFEM::NumeredDofEntity::getDofIdx ( ) const
inline
Returns
MoFEM DoF index

Definition at line 241 of file DofsMultiIndices.hpp.

241 { return dofIdx; }

◆ getHasLocalIndex()

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

Definition at line 253 of file DofsMultiIndices.hpp.

253  {
254  return !std::signbit(petscLocalDofIdx);
255  }

◆ getPart()

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

Definition at line 250 of file DofsMultiIndices.hpp.

250 { return pArt; }

◆ getPetscGlobalDofIdx()

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

Definition at line 244 of file DofsMultiIndices.hpp.

244 { return petscGloablDofIdx; }

◆ getPetscLocalDofIdx()

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

Definition at line 247 of file DofsMultiIndices.hpp.

247 { return petscLocalDofIdx; }

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 77 of file DofsMultiIndices.cpp.

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

Member Data Documentation

◆ dofIdx

DofIdx MoFEM::NumeredDofEntity::dofIdx

Definition at line 235 of file DofsMultiIndices.hpp.

◆ pArt

unsigned int MoFEM::NumeredDofEntity::pArt

Definition at line 238 of file DofsMultiIndices.hpp.

◆ petscGloablDofIdx

DofIdx MoFEM::NumeredDofEntity::petscGloablDofIdx

Definition at line 236 of file DofsMultiIndices.hpp.

◆ petscLocalDofIdx

DofIdx MoFEM::NumeredDofEntity::petscLocalDofIdx

Definition at line 237 of file DofsMultiIndices.hpp.


The documentation for this struct was generated from the following files:
MoFEM::NumeredDofEntity::petscLocalDofIdx
DofIdx petscLocalDofIdx
Definition: DofsMultiIndices.hpp:237
MoFEM::NumeredDofEntity::pArt
unsigned int pArt
Definition: DofsMultiIndices.hpp:238
MoFEM::NumeredDofEntity::dofIdx
DofIdx dofIdx
Definition: DofsMultiIndices.hpp:235
MoFEM::NumeredDofEntity::petscGloablDofIdx
DofIdx petscGloablDofIdx
Definition: DofsMultiIndices.hpp:236