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

Method setDamping

SRC/element/zeroLength/ZeroLength.cpp:710–731  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

708}
709
710int
711ZeroLength::setDamping(Domain *theDomain, Damping *damping)
712{
713 if (theDomain && damping)
714 {
715 if (theDamping) delete theDamping;
716
717 theDamping =(*damping).getCopy();
718
719 if (!theDamping) {
720 opserr << "ZeroLength::setDamping -- failed to get copy of damping\n";
721 return -1;
722 }
723 if (theDamping->setDomain(theDomain, numMaterials1d)) {
724 opserr << "ZeroLength::setDamping -- Error initializing damping\n";
725 return -2;
726 }
727 fd = new Vector(numDOF);
728 }
729
730 return 0;
731}
732
733int
734ZeroLength::commitState()

Callers

nothing calls this directly

Calls 2

getCopyMethod · 0.45
setDomainMethod · 0.45

Tested by

no test coverage detected