| 238 | } |
| 239 | |
| 240 | int |
| 241 | CentralDifferenceAlternative::commit(void) |
| 242 | { |
| 243 | AnalysisModel *theModel = this->getAnalysisModel(); |
| 244 | if (theModel == 0) { |
| 245 | opserr << "WARNING CentralDifferenceAlternative::commit() - no AnalysisModel set\n"; |
| 246 | return -1; |
| 247 | } |
| 248 | |
| 249 | *Ut = *Utp1; |
| 250 | |
| 251 | // update time in Domain to T + deltaT & commit the domain |
| 252 | double time = theModel->getCurrentDomainTime() + deltaT; |
| 253 | theModel->setCurrentDomainTime(time); |
| 254 | |
| 255 | return theModel->commitDomain(); |
| 256 | |
| 257 | return 0; |
| 258 | } |
| 259 | |
| 260 | const Vector & |
| 261 | CentralDifferenceAlternative::getVel() |
nothing calls this directly
no test coverage detected