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

Method commit

SRC/analysis/integrator/CentralDifferenceAlternative.cpp:240–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238 }
239
240int
241CentralDifferenceAlternative::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
260const Vector &
261CentralDifferenceAlternative::getVel()

Callers

nothing calls this directly

Calls 4

getAnalysisModelMethod · 0.45
getCurrentDomainTimeMethod · 0.45
setCurrentDomainTimeMethod · 0.45
commitDomainMethod · 0.45

Tested by

no test coverage detected