| 506 | |
| 507 | |
| 508 | void |
| 509 | FE_Element::addRIncInertiaToResidual(double fact) |
| 510 | { |
| 511 | if (myEle != 0) { |
| 512 | // check for a quick return |
| 513 | if (fact == 0.0 || !myEle->isActive()) |
| 514 | return; |
| 515 | else if (myEle->isSubdomain() == false) { |
| 516 | const Vector &eleResisting = myEle->getResistingForceIncInertia(); |
| 517 | theResidual->addVector(1.0, eleResisting, -fact); |
| 518 | } |
| 519 | else { |
| 520 | opserr << "WARNING FE_Element::addRtoResidual() - "; |
| 521 | opserr << "- this should not be called on a Subdomain!\n"; |
| 522 | } |
| 523 | } |
| 524 | else { |
| 525 | opserr << "WARNING FE_Element::addRtoResidual() - no Element *given "; |
| 526 | opserr << "- subclasses must provide implementation\n"; |
| 527 | } |
| 528 | } |
| 529 | |
| 530 | |
| 531 | const Vector & |
no test coverage detected