57 IntArray dofManConnectivity(ndofMan);
66 int nnodes = elem->giveNumberOfDofManagers();
67 for (
int j = 1; j <= nnodes; j++ ) {
68 int jnode = elem->giveDofManager(j)->giveNumber();
69 dofManConnectivity.
at(jnode)++;
75 for (
int i = 0; i < ndofMan; i++ ) {
80 dofManConnectivity.
zero();
82 for (
int i = 1; i <= nelems; i++ ) {
85 for (
int j = 1; j <= nnodes; j++ ) {
114 for (
auto &el_num : elemList ) {
117 for (
int j = 1; j <= nnode; j++ ) {
137 for (
int i = 1; i <= nnodes; i++ ) {
138 int inode = nodeList.
at(i);
std::vector< IntArray > nodalConnectivity
Nodal connectivity table for domain.
int giveNumberOfDofManagers() const
Returns number of dof managers in domain.
void reset()
reset receiver to an initial state (will force table update, when needed next time) ...
void zero()
Sets all component to zero.
void instanciateConnectivityTable()
Builds connectivity table.
bool insertSortedOnce(int value, int allocChunk=0)
Inserts given value into a receiver, which is assumed to be sorted.
Abstract base class for all finite elements.
int giveNumberOfElements() const
Returns number of elements in domain.
Class implementing an array of integers.
int & at(int i)
Coefficient access function.
virtual int giveNumberOfDofManagers() const
Element * giveElement(int n)
Service for accessing particular domain fe element.
Domain * domain
Pointer to domain to which receiver belongs to.
int nodalConnectivityFlag
Flag indicating assembled connectivity table for domain.
void resize(int n)
Checks size of receiver towards requested bounds.
void giveElementNeighbourList(IntArray &answer, IntArray &elemList)
Returns list of neighboring elements to given elements (they are included too).
const IntArray * giveDofManConnectivityArray(int dofman)
void giveNodeNeighbourList(IntArray &answer, IntArray &nodeList)
Returns list of elements sharing given nodes.
std::vector< std::unique_ptr< Element > > & giveElements()
the oofem namespace is to define a context or scope in which all oofem names are defined.
DofManager * giveDofManager(int i) const