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

Method clearAll

SRC/analysis/handler/TransformationConstraintHandler.cpp:414–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

412
413
414void
415TransformationConstraintHandler::clearAll(void)
416{
417 // delete the arrays
418 if (theFEs != 0) delete [] theFEs;
419 if (theDOFs != 0) delete [] theDOFs;
420
421 // reset the numbers
422 numDOF = 0;
423 numFE = 0;
424 theFEs = 0;
425 theDOFs = 0;
426
427 // for the nodes reset the DOF_Group pointers to 0
428 Domain *theDomain = this->getDomainPtr();
429 if (theDomain == 0)
430 return;
431
432 NodeIter &theNod = theDomain->getNodes();
433 Node *nodPtr;
434 while ((nodPtr = theNod()) != 0)
435 nodPtr->setDOF_GroupPtr(0);
436}
437
438int
439TransformationConstraintHandler::sendSelf(int cTag, Channel &theChannel)

Callers

nothing calls this directly

Calls 3

getNodesMethod · 0.80
getDomainPtrMethod · 0.45
setDOF_GroupPtrMethod · 0.45

Tested by

no test coverage detected