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

Method addLocalM_ForceSensitivity

DEVELOPER/core/FE_Element.cpp:1059–1084  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1057}
1058
1059void
1060FE_Element::addLocalM_ForceSensitivity(int gradNumber, const Vector &accel, double fact)
1061{
1062 if (myEle != 0) {
1063
1064 // check for a quick return
1065 if (fact == 0.0)
1066 return;
1067 if (myEle->isSubdomain() == false) {
1068 if (theResidual->addMatrixVector(1.0, myEle->getMassSensitivity(gradNumber),
1069 accel, fact) < 0){
1070
1071 opserr << "WARNING FE_Element::addLocalD_ForceSensitivity() - ";
1072 opserr << "- addMatrixVector returned error\n";
1073 }
1074 }
1075 else {
1076 opserr << "WARNING FE_Element::addLocalD_ForceSensitivity() - ";
1077 opserr << "- this should not be called on a Subdomain!\n";
1078 }
1079 }
1080 else {
1081 opserr << "WARNING FE_Element::addLocalD_ForceSensitivity() - no Element *given ";
1082 opserr << "- subclasses must provide implementation\n";
1083 }
1084}
1085
1086
1087

Callers

nothing calls this directly

Calls 3

isSubdomainMethod · 0.45
addMatrixVectorMethod · 0.45
getMassSensitivityMethod · 0.45

Tested by

no test coverage detected