MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / removeNode

Method removeNode

SRC/domain/domain/Domain.cpp:1146–1169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1144}
1145
1146Node *
1147Domain::removeNode(int tag)
1148{
1149 // remove the object from the container
1150 TaggedObject *mc = theNodes->removeComponent(tag);
1151
1152 // if not there return 0
1153 if (mc == 0)
1154 return 0;
1155
1156 // mark the domain has having changed
1157 this->domainChange();
1158
1159 // adjust node bounds
1160 resetBounds = true;
1161
1162 // perform a downward cast to a Node (safe as only Node added to
1163 // this container and return the result of the cast
1164 Node *result = (Node *)mc;
1165 // result->setDomain(0);
1166
1167
1168 return result;
1169}
1170
1171
1172int

Callers 15

clearMethod · 0.45
removeOutBoundNodesMethod · 0.45
clearNodesMethod · 0.45
removeOutBoundNodesMethod · 0.45
clearGridMethod · 0.45
~PFEMElement2DQuasiMethod · 0.45
removeCenterNodeMethod · 0.45
~TaylorHood2DMethod · 0.45
~PFEMElement2DminiMethod · 0.45
~MINIMethod · 0.45
~Joint2DMethod · 0.45

Calls 2

domainChangeMethod · 0.95
removeComponentMethod · 0.45

Tested by

no test coverage detected