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

Method addLocalD_ForceSensitivity

DEVELOPER/core/FE_Element.cpp:1032–1057  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1030}
1031
1032void
1033FE_Element::addLocalD_ForceSensitivity(int gradNumber, const Vector &accel, double fact)
1034{
1035 if (myEle != 0) {
1036
1037 // check for a quick return
1038 if (fact == 0.0)
1039 return;
1040 if (myEle->isSubdomain() == false) {
1041 if (theResidual->addMatrixVector(1.0, myEle->getDampSensitivity(gradNumber),
1042 accel, fact) < 0){
1043
1044 opserr << "WARNING FE_Element::addLocalD_ForceSensitivity() - ";
1045 opserr << "- addMatrixVector returned error\n";
1046 }
1047 }
1048 else {
1049 opserr << "WARNING FE_Element::addLocalD_ForceSensitivity() - ";
1050 opserr << "- this should not be called on a Subdomain!\n";
1051 }
1052 }
1053 else {
1054 opserr << "WARNING FE_Element::addLocalD_ForceSensitivity() - no Element *given ";
1055 opserr << "- subclasses must provide implementation\n";
1056 }
1057}
1058
1059void
1060FE_Element::addLocalM_ForceSensitivity(int gradNumber, const Vector &accel, double fact)

Callers

nothing calls this directly

Calls 2

isSubdomainMethod · 0.45
addMatrixVectorMethod · 0.45

Tested by

no test coverage detected