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

Method removeElement

SRC/domain/domain/Domain.cpp:1126–1144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1124
1125
1126Element *
1127Domain::removeElement(int tag)
1128{
1129 // remove the object from the container
1130 TaggedObject *mc = theElements->removeComponent(tag);
1131
1132 // if not there return 0
1133 if (mc == 0)
1134 return 0;
1135
1136 // otherwise mark the domain as having changed
1137 this->domainChange();
1138
1139 // perform a downward cast to an Element (safe as only Element added to
1140 // this container, 0 the Elements DomainPtr and return the result of the cast
1141 Element *result = (Element *)mc;
1142 // result->setDomain(0);
1143 return result;
1144}
1145
1146Node *
1147Domain::removeNode(int tag)

Callers 12

clearMethod · 0.45
clearElesMethod · 0.45
removeElementsMethod · 0.45
gridFSInoDTMethod · 0.45
gridFSIMethod · 0.45
OPS_removeObjectFunction · 0.45
OPS_partitionFunction · 0.45
partitionMethod · 0.45
removeObjectFunction · 0.45
elimElemMethod · 0.45
checkElementStateMethod · 0.45
removeObjectFunction · 0.45

Calls 2

domainChangeMethod · 0.95
removeComponentMethod · 0.45

Tested by

no test coverage detected