| 402 | |
| 403 | |
| 404 | int 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 | |
| 427 | const Vector & |
| 428 | HHT::getVel() |
no test coverage detected