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

Method setCrds

DEVELOPER/core/Node.cpp:2270–2283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2268}
2269
2270void
2271Node::setCrds(double Crd1)
2272{
2273 if (Crd != 0 && Crd->Size() >= 1)
2274 (*Crd)(0) = Crd1;
2275
2276 // Need to "setDomain" to make the change take effect.
2277 Domain *theDomain = this->getDomain();
2278 ElementIter &theElements = theDomain->getElements();
2279 Element *theElement;
2280 while ((theElement = theElements()) != 0) {
2281 theElement->setDomain(theDomain);
2282 }
2283}
2284
2285void
2286Node::setCrds(double Crd1, double Crd2)

Callers

nothing calls this directly

Calls 4

SizeMethod · 0.45
getDomainMethod · 0.45
getElementsMethod · 0.45
setDomainMethod · 0.45

Tested by

no test coverage detected