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

Method commitState

DEVELOPER/core/Node.cpp:1159–1185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1157
1158
1159int
1160Node::commitState()
1161{
1162 // check disp exists, if does set commit = trial, incr = 0.0
1163 if (trialDisp != 0) {
1164 for (int i=0; i<numberDOF; i++) {
1165 disp[i+numberDOF] = disp[i];
1166 disp[i+2*numberDOF] = 0.0;
1167 disp[i+3*numberDOF] = 0.0;
1168 }
1169 }
1170
1171 // check vel exists, if does set commit = trial
1172 if (trialVel != 0) {
1173 for (int i=0; i<numberDOF; i++)
1174 vel[i+numberDOF] = vel[i];
1175 }
1176
1177 // check accel exists, if does set commit = trial
1178 if (trialAccel != 0) {
1179 for (int i=0; i<numberDOF; i++)
1180 accel[i+numberDOF] = accel[i];
1181 }
1182
1183 // if we get here we are done
1184 return 0;
1185}
1186
1187
1188

Callers 4

setPressureMethod · 0.45
setPdotMethod · 0.45
OPS_NodeFunction · 0.45
commitMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected