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

Method addExternalNode

DEVELOPER/core/Subdomain.cpp:203–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203bool
204Subdomain::addExternalNode(Node *thePtr)
205{
206#ifdef _G3DEBUG
207 // check to see it has not alredy been added
208
209 int nodTag = thePtr->getTag();
210 TaggedObject *other = externalNodes->getComponentPtr(nodTag);
211 if (other != 0)
212 return false;
213
214 other = internalNodes->getComponentPtr(nodTag);
215 if (other != 0)
216 return false;
217
218#endif
219 // create a dummy Node & try adding it to the external nodes
220 Node *newDummy = new Node(*thePtr, false);
221 if (newDummy == 0)
222 return false;
223
224 bool result = externalNodes->addComponent(newDummy);
225 if (result == true) {
226 // result = realExternalNodes->addComponent(thePtr);
227 newDummy->setDomain(this);
228 this->domainChange();
229 }
230
231 return result;
232}
233
234
235

Callers

nothing calls this directly

Calls 5

getTagMethod · 0.45
getComponentPtrMethod · 0.45
addComponentMethod · 0.45
setDomainMethod · 0.45
domainChangeMethod · 0.45

Tested by

no test coverage detected