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

Method addLocalM_ForceSensitivity

SRC/analysis/fe_ele/FE_Element.cpp:1062–1087  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

addM_ForceSensitivityMethod · 0.45

Calls 3

isSubdomainMethod · 0.45
addMatrixVectorMethod · 0.45
getMassSensitivityMethod · 0.45

Tested by

no test coverage detected