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

Method addKpToTang

DEVELOPER/core/FE_Element.cpp:435–451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

433}
434
435void
436FE_Element::addKpToTang(double fact, int numP)
437{
438 if (myEle != 0) {
439 // check for a quick return
440 if (fact == 0.0)
441 return;
442 else if (myEle->isSubdomain() == false) {
443 const Matrix *thePrevMat = myEle->getPreviousK(numP);
444 if (thePrevMat != 0)
445 theTangent->addMatrix(1.0, *thePrevMat, fact);
446 } else {
447 opserr << "WARNING FE_Element::addKpToTang() - ";
448 opserr << "- this should not be called on a Subdomain!\n";
449 }
450 }
451}
452
453int
454FE_Element::storePreviousK(int numP)

Callers

nothing calls this directly

Calls 3

isSubdomainMethod · 0.45
getPreviousKMethod · 0.45
addMatrixMethod · 0.45

Tested by

no test coverage detected