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

Method revertToLastCommit

SRC/element/forceBeamColumn/ForceBeamColumn3d.cpp:655–690  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

653}
654
655int ForceBeamColumn3d::revertToLastCommit()
656{
657 int err;
658 int i = 0;
659
660 do {
661 vs[i] = vscommit[i];
662 err = sections[i]->revertToLastCommit();
663
664 sections[i]->setTrialSectionDeformation(vs[i]);
665 Ssr[i] = sections[i]->getStressResultant();
666 fs[i] = sections[i]->getSectionFlexibility();
667
668 i++;
669 } while (err == 0 && i < numSections);
670
671
672 if (err)
673 return err;
674
675 // revert the transformation to last commit
676 if ((err = crdTransf->revertToLastCommit()) != 0)
677 return err;
678
679 // revert the element state to last commit
680 Se = Secommit;
681 kv = kvcommit;
682
683 initialFlag = 0;
684 // this->update();
685
686 if (theDamping && (err = theDamping->revertToLastCommit()))
687 return err;
688
689 return err;
690}
691
692int ForceBeamColumn3d::revertToStart()
693{

Callers 1

updateMethod · 0.95

Calls 1

Tested by

no test coverage detected