| 898 | |
| 899 | |
| 900 | bool |
| 901 | Domain::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: |
nothing calls this directly
no test coverage detected