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

Method addElementalLoad

DEVELOPER/core/Domain.cpp:900–923  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

898
899
900bool
901Domain::addElementalLoad(ElementalLoad *load, int pattern)
902{
903 // now add it to the pattern
904 TaggedObject *thePattern = theLoadPatterns->getComponentPtr(pattern);
905 if (thePattern == 0) {
906 opserr << "Domain::addElementalLoad() - no pattern with tag " << pattern <<
907 "exits in the model, not adding the ele load " << *load << endln;
908
909 return false;
910 }
911 LoadPattern *theLoadPattern = (LoadPattern *)thePattern;
912 bool result = theLoadPattern->addElementalLoad(load);
913 if (result == false) {
914 opserr << "Domain::addElementalLoad() - no pattern with tag" <<
915 pattern << "in the model, not adding the ele load" << *load << endln;
916 return false;
917 }
918
919
920 // load->setDomain(this); // done in LoadPattern::addElementalLoad()
921 this->domainChange();
922 return result;
923}
924
925
926/* GENERAL NOTE ON REMOVAL OF COMPONENTS:

Callers

nothing calls this directly

Calls 2

domainChangeMethod · 0.95
getComponentPtrMethod · 0.45

Tested by

no test coverage detected