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

Method addLocalD_Force

DEVELOPER/core/FE_Element.cpp:934–959  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

932}
933
934void
935FE_Element::addLocalD_Force(const Vector &accel, double fact)
936{
937 if (myEle != 0) {
938
939 // check for a quick return
940 if (fact == 0.0)
941 return;
942 if (myEle->isSubdomain() == false) {
943 if (theResidual->addMatrixVector(1.0, myEle->getDamp(),
944 accel, fact) < 0){
945
946 opserr << "WARNING FE_Element::addLocalD_Force() - ";
947 opserr << "- addMatrixVector returned error\n";
948 }
949 }
950 else {
951 opserr << "WARNING FE_Element::addLocalD_Force() - ";
952 opserr << "- this should not be called on a Subdomain!\n";
953 }
954 }
955 else {
956 opserr << "WARNING FE_Element::addLocalD_Force() - no Element *given ";
957 opserr << "- subclasses must provide implementation\n";
958 }
959}
960
961
962Element *

Callers

nothing calls this directly

Calls 2

isSubdomainMethod · 0.45
addMatrixVectorMethod · 0.45

Tested by

no test coverage detected