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

Method setDomain

SRC/domain/pattern/LoadPattern.cpp:254–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254void
255LoadPattern::setDomain(Domain *theDomain)
256{
257 // if subclass does not implement .. check for 0 pointer
258 if (theNodalLoads != 0) {
259 NodalLoad *nodLoad;
260 NodalLoadIter &theNodalIter = this->getNodalLoads();
261 while ((nodLoad = theNodalIter()) != 0)
262 nodLoad->setDomain(theDomain);
263
264 ElementalLoad *eleLoad;
265 ElementalLoadIter &theElementalIter = this->getElementalLoads();
266 while ((eleLoad = theElementalIter()) != 0)
267 eleLoad->setDomain(theDomain);
268
269 SP_Constraint *theSP;
270 SP_ConstraintIter &theSpConstraints = this->getSPs();
271 while ((theSP = theSpConstraints()) != 0)
272 theSP->setDomain(theDomain);
273 }
274
275 // now we set this load patterns domain
276 this->DomainComponent::setDomain(theDomain);
277}
278
279
280

Callers 6

addNodalLoadMethod · 0.45
addElementalLoadMethod · 0.45
addSP_ConstraintMethod · 0.45
removeNodalLoadMethod · 0.45
removeElementalLoadMethod · 0.45
removeSP_ConstraintMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected