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

Method revertToLastCommit

SRC/element/forceBeamColumn/ForceBeamColumnCBDI3d.cpp:485–517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

483}
484
485int ForceBeamColumnCBDI3d::revertToLastCommit()
486{
487 int err;
488 int i = 0;
489
490 do {
491 vs[i] = vscommit[i];
492 err = sections[i]->revertToLastCommit();
493
494 sections[i]->setTrialSectionDeformation(vs[i]);
495 Ssr[i] = sections[i]->getStressResultant();
496 fs[i] = sections[i]->getSectionFlexibility();
497
498 i++;
499 } while (err == 0 && i < numSections);
500
501
502 if (err)
503 return err;
504
505 // revert the transformation to last commit
506 if ((err = crdTransf->revertToLastCommit()) != 0)
507 return err;
508
509 // revert the element state to last commit
510 Se = Secommit;
511 kv = kvcommit;
512
513 initialFlag = 0;
514 // this->update();
515
516 return err;
517}
518
519int ForceBeamColumnCBDI3d::revertToStart()
520{

Callers 1

updateMethod · 0.95

Calls 1

Tested by

no test coverage detected