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

Method addLocalM_Force

SRC/analysis/fe_ele/FE_Element.cpp:910–935  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

addM_ForceMethod · 0.45

Calls 3

isActiveMethod · 0.45
isSubdomainMethod · 0.45
addMatrixVectorMethod · 0.45

Tested by

no test coverage detected