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

Method addM_Force

SRC/analysis/fe_ele/transformation/TransformationFE.cpp:933–951  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

931}
932
933void
934TransformationFE::addM_Force(const Vector &disp, double fact)
935{
936 if (fact == 0.0)
937 return;
938
939 static Vector response;
940 response.setData(dataBuffer, numOriginalDOF);
941
942 for (int i=0; i<numTransformedDOF; i++) {
943 int loc = (*modID)(i);
944 if (loc >= 0)
945 (*modResidual)(i) = disp(loc);
946 else
947 (*modResidual)(i) = 0.0;
948 }
949 transformResponse(*modResidual, response);
950 this->addLocalM_Force(response, fact);
951}
952
953
954

Callers

nothing calls this directly

Calls 2

setDataMethod · 0.45
addLocalM_ForceMethod · 0.45

Tested by

no test coverage detected