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

Method addLocalM_Force

DEVELOPER/core/FE_Element.cpp:907–932  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

905
906
907void
908FE_Element::addLocalM_Force(const Vector &accel, double fact)
909{
910 if (myEle != 0) {
911
912 // check for a quick return
913 if (fact == 0.0)
914 return;
915 if (myEle->isSubdomain() == false) {
916 if (theResidual->addMatrixVector(1.0, myEle->getMass(),
917 accel, fact) < 0){
918
919 opserr << "WARNING FE_Element::addLocalM_Force() - ";
920 opserr << "- addMatrixVector returned error\n";
921 }
922 }
923 else {
924 opserr << "WARNING FE_Element::addLocalM_Force() - ";
925 opserr << "- this should not be called on a Subdomain!\n";
926 }
927 }
928 else {
929 opserr << "WARNING FE_Element::addLocalM_Force() - no Element *given ";
930 opserr << "- subclasses must provide implementation\n";
931 }
932}
933
934void
935FE_Element::addLocalD_Force(const Vector &accel, double fact)

Callers

nothing calls this directly

Calls 2

isSubdomainMethod · 0.45
addMatrixVectorMethod · 0.45

Tested by

no test coverage detected