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

Method commit

SRC/analysis/integrator/HHT.cpp:404–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402
403
404int HHT::commit(void)
405{
406 AnalysisModel *theModel = this->getAnalysisModel();
407 if (theModel == 0) {
408 opserr << "WARNING HHT::commit() - no AnalysisModel set\n";
409 return -1;
410 }
411
412 // update the response at the DOFs
413 theModel->setResponse(*U,*Udot,*Udotdot);
414 if (theModel->updateDomain() < 0) {
415 opserr << "HHT::commit() - failed to update the domain\n";
416 return -2;
417 }
418
419 // set the time to be t+deltaT
420 double time = theModel->getCurrentDomainTime();
421 time += (1.0-alpha)*deltaT;
422 theModel->setCurrentDomainTime(time);
423
424 return theModel->commitDomain();
425}
426
427const Vector &
428HHT::getVel()

Callers 10

commitDomainMethod · 0.45
analyzeMethod · 0.45
initializeMethod · 0.45
analyzeMethod · 0.45
initializeMethod · 0.45
analyzeMethod · 0.45
initializeMethod · 0.45
analyzeStepMethod · 0.45
analyzeMethod · 0.45
initializeMethod · 0.45

Calls 6

getAnalysisModelMethod · 0.45
setResponseMethod · 0.45
updateDomainMethod · 0.45
getCurrentDomainTimeMethod · 0.45
setCurrentDomainTimeMethod · 0.45
commitDomainMethod · 0.45

Tested by

no test coverage detected