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

Method revertToLastCommit

SRC/coordTransformation/CorotCrdTransf3d.cpp:236–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234
235
236int
237CorotCrdTransf3d::revertToLastCommit(void)
238{
239 // determine global displacement increments from last iteration
240 const Vector &dispI = nodeIPtr->getTrialDisp();
241 const Vector &dispJ = nodeJPtr->getTrialDisp();
242
243 for (int k = 0; k < 3; k++) {
244 alphaI(k) = dispI(k+3);
245 alphaJ(k) = dispJ(k+3);
246 }
247
248 if (nodeIInitialDisp != 0) {
249 for (int j=0; j<3; j++)
250 alphaI(j) -= nodeIInitialDisp[j+3];
251 }
252
253 if (nodeJInitialDisp != 0) {
254 for (int j=0; j<3; j++)
255 alphaJ(j) -= nodeJInitialDisp[j+3];
256 }
257
258 ul = ulcommit;
259 alphaIq = alphaIqcommit;
260 alphaJq = alphaJqcommit;
261
262 this->update();
263
264 return 0;
265}
266
267
268int

Callers

nothing calls this directly

Calls 1

updateMethod · 0.95

Tested by

no test coverage detected