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

Method addLocalD_Force

SRC/analysis/fe_ele/FE_Element.cpp:937–962  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

addD_ForceMethod · 0.45

Calls 3

isActiveMethod · 0.45
isSubdomainMethod · 0.45
addMatrixVectorMethod · 0.45

Tested by

no test coverage detected