| 279 | |
| 280 | |
| 281 | bool |
| 282 | LoadPattern::addNodalLoad(NodalLoad *load) |
| 283 | { |
| 284 | Domain *theDomain = this->getDomain(); |
| 285 | |
| 286 | bool result = theNodalLoads->addComponent(load); |
| 287 | if (result == true) { |
| 288 | if (theDomain != 0) |
| 289 | load->setDomain(theDomain); |
| 290 | load->setLoadPatternTag(this->getTag()); |
| 291 | currentGeoTag++; |
| 292 | } else |
| 293 | opserr << "WARNING: LoadPattern::addNodalLoad() - load could not be added\n"; |
| 294 | |
| 295 | return result; |
| 296 | } |
| 297 | |
| 298 | bool |
| 299 | LoadPattern::addElementalLoad(ElementalLoad *load) |
no test coverage detected