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

Method addRtoResidual

DEVELOPER/core/FE_Element.cpp:482–502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480}
481
482void
483FE_Element::addRtoResidual(double fact)
484{
485 if (myEle != 0) {
486 // check for a quick return
487 if (fact == 0.0)
488 return;
489 else if (myEle->isSubdomain() == false) {
490 const Vector &eleResisting = myEle->getResistingForce();
491 theResidual->addVector(1.0, eleResisting, -fact);
492 }
493 else {
494 opserr << "WARNING FE_Element::addRtoResidual() - ";
495 opserr << "- this should not be called on a Subdomain!\n";
496 }
497 }
498 else {
499 opserr << "WARNING FE_Element::addRtoResidual() - no Element *given ";
500 opserr << "- subclasses must provide implementation\n";
501 }
502}
503
504
505void

Callers 1

formEleResidualMethod · 0.45

Calls 3

getResistingForceMethod · 0.80
isSubdomainMethod · 0.45
addVectorMethod · 0.45

Tested by

no test coverage detected