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

Method revertToLastCommit

SRC/element/forceBeamColumn/ForceBeamColumn2d.cpp:949–984  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

947}
948
949int ForceBeamColumn2d::revertToLastCommit()
950{
951 int err;
952 int i = 0;
953
954 do {
955 vs[i] = vscommit[i];
956 err = sections[i]->revertToLastCommit();
957
958 sections[i]->setTrialSectionDeformation(vs[i]);
959 Ssr[i] = sections[i]->getStressResultant();
960 fs[i] = sections[i]->getSectionFlexibility();
961
962 i++;
963 } while (err == 0 && i < numSections);
964
965
966 if (err)
967 return err;
968
969 // revert the transformation to last commit
970 if ((err = crdTransf->revertToLastCommit()) != 0)
971 return err;
972
973 // revert the element state to last commit
974 Se = Secommit;
975 kv = kvcommit;
976
977 initialFlag = 0;
978 // this->update();
979
980 if (theDamping && (err = theDamping->revertToLastCommit()))
981 return err;
982
983 return err;
984}
985
986int ForceBeamColumn2d::revertToStart()
987{

Callers 1

updateMethod · 0.95

Calls 1

Tested by

no test coverage detected