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

Method removeElement

DEVELOPER/core/Domain.cpp:1018–1036  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1016
1017
1018Element *
1019Domain::removeElement(int tag)
1020{
1021 // remove the object from the container
1022 TaggedObject *mc = theElements->removeComponent(tag);
1023
1024 // if not there return 0
1025 if (mc == 0)
1026 return 0;
1027
1028 // otherwise mark the domain as having changed
1029 this->domainChange();
1030
1031 // perform a downward cast to an Element (safe as only Element added to
1032 // this container, 0 the Elements DomainPtr and return the result of the cast
1033 Element *result = (Element *)mc;
1034 // result->setDomain(0);
1035 return result;
1036}
1037
1038Node *
1039Domain::removeNode(int tag)

Callers

nothing calls this directly

Calls 2

domainChangeMethod · 0.95
removeComponentMethod · 0.45

Tested by

no test coverage detected