v0.9.1
Public Member Functions | Friends | List of all members
MoFEM::RefElement_VERTEX Struct Reference

keeps data about abstract VERTEX finite element More...

#include <src/multi_indices/FEMultiIndices.hpp>

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

Public Member Functions

 RefElement_VERTEX (const boost::shared_ptr< RefEntity > &ref_ents_ptr)
 
virtual ~RefElement_VERTEX ()=default
 
const boost::shared_ptr< SideNumber > & getSideNumberPtr (const EntityHandle ent) const
 
- Public Member Functions inherited from MoFEM::RefElement
 RefElement (const boost::shared_ptr< RefEntity > &ref_ents_ptr)
 
virtual ~RefElement ()=default
 
virtual const BitRefEdgesgetBitRefEdges () const
 
virtual int getBitRefEdgesUlong () const
 
SideNumber_multiIndexgetSideNumberTable () const
 
boost::shared_ptr< RefEntity > & getRefEntityPtr () const
 Get pointer to RefEntity. More...
 
- Public Member Functions inherited from MoFEM::interface_RefEntity< RefEntity >
 interface_RefEntity (const boost::shared_ptr< RefEntity > &sptr)
 
 interface_RefEntity (const interface_RefEntity< RefEntity > &interface)
 
virtual ~interface_RefEntity ()=default
 
boost::shared_ptr< BasicEntityData > & getBasicDataPtr ()
 
const boost::shared_ptr< BasicEntityData > & getBasicDataPtr () const
 
EntityHandle getRefEnt () const
 
EntityType getParentEntType () const
 
EntityHandle getParentEnt () const
 
BitRefLevelgetBitRefLevelPtr () const
 
const BitRefLevelgetBitRefLevel () const
 
unsigned long int getBitRefLevelULong () const
 
EntityType getEntType () const
 
EntityID getEntId () const
 
EntityHandle getOwnerEnt () const
 
EntityHandlegetOwnerEnt ()
 
int getOwnerProc () const
 
int & getOwnerProc ()
 
int getPartProc () const
 
int & getPartProc ()
 
unsigned char getPStatus () const
 
int * getSharingProcsPtr () const
 
EntityHandlegetSharingHandlersPtr () const
 
boost::shared_ptr< RefEntity > & getRefEntityPtr () const
 

Friends

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

Additional Inherited Members

- Public Types inherited from MoFEM::RefElement
typedef interface_RefEntity< RefEntityinterface_type_RefEntity
 
- Public Attributes inherited from MoFEM::RefElement
SideNumber_multiIndex side_number_table
 
- Public Attributes inherited from MoFEM::interface_RefEntity< RefEntity >
boost::shared_ptr< RefEntitysPtr
 
- Static Public Attributes inherited from MoFEM::RefElement
static BitRefEdges DummyBitRefEdges = BitRefEdges(0)
 
static const boost::shared_ptr< SideNumber > nullSideNumber
 

Detailed Description

keeps data about abstract VERTEX finite element

Definition at line 137 of file FEMultiIndices.hpp.

Constructor & Destructor Documentation

◆ RefElement_VERTEX()

MoFEM::RefElement_VERTEX::RefElement_VERTEX ( const boost::shared_ptr< RefEntity > &  ref_ents_ptr)

Definition at line 468 of file FEMultiIndices.cpp.

470  : RefElement(ref_ents_ptr) {
471  switch (ref_ents_ptr->getEntType()) {
472  case MBVERTEX:
473  break;
474  default:
475  THROW_MESSAGE("this works only for TRIs");
476  }
477 }
RefElement(const boost::shared_ptr< RefEntity > &ref_ents_ptr)
#define THROW_MESSAGE(a)
Throw MoFEM exception.
Definition: definitions.h:626

◆ ~RefElement_VERTEX()

virtual MoFEM::RefElement_VERTEX::~RefElement_VERTEX ( )
virtualdefault

Member Function Documentation

◆ getSideNumberPtr()

const boost::shared_ptr< SideNumber > & MoFEM::RefElement_VERTEX::getSideNumberPtr ( const EntityHandle  ent) const
virtual

Reimplemented from MoFEM::RefElement.

Definition at line 479 of file FEMultiIndices.cpp.

479  {
480  moab::Interface &moab = getRefEntityPtr()->basicDataPtr->moab;
481  SideNumber_multiIndex::iterator miit = side_number_table.find(ent);
482  if (miit != side_number_table.end())
483  return *miit;
484  if (sPtr->ent == ent) {
485  miit =
486  const_cast<SideNumber_multiIndex &>(side_number_table)
487  .insert(boost::shared_ptr<SideNumber>(new SideNumber(ent, 0, 0, 0)))
488  .first;
489  return *miit;
490  }
491  if (moab.type_from_handle(ent) == MBENTITYSET) {
492  miit =
493  const_cast<SideNumber_multiIndex &>(side_number_table)
494  .insert(boost::shared_ptr<SideNumber>(new SideNumber(ent, 0, 0, 0)))
495  .first;
496  return *miit;
497  }
498  THROW_MESSAGE("no side entity for vertex if its is not an vertex itself");
499  return nullSideNumber;
500 }
boost::shared_ptr< RefEntity > sPtr
SideNumber_multiIndex side_number_table
#define THROW_MESSAGE(a)
Throw MoFEM exception.
Definition: definitions.h:626
boost::shared_ptr< RefEntity > & getRefEntityPtr() const
Get pointer to RefEntity.
DeprecatedCoreInterface Interface
Definition: Interface.hpp:1879
static const boost::shared_ptr< SideNumber > nullSideNumber

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 501 of file FEMultiIndices.cpp.

501  {
502  os << *e.sPtr;
503  return os;
504 }

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