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

Method commitState

SRC/domain/node/Node.cpp:1092–1120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1090
1091
1092int
1093Node::commitState()
1094{
1095 // check disp exists, if does set commit = trial, incr = 0.0
1096 if (trialDisp != 0) {
1097 for (int i=0; i<numberDOF; i++) {
1098 disp[i+numberDOF] = disp[i];
1099 disp[i+2*numberDOF] = 0.0;
1100 disp[i+3*numberDOF] = 0.0;
1101 }
1102 }
1103
1104 // check vel exists, if does set commit = trial
1105 if (trialVel != 0) {
1106 for (int i=0; i<numberDOF; i++)
1107 vel[i+numberDOF] = vel[i];
1108 }
1109
1110 // check accel exists, if does set commit = trial
1111 if (trialAccel != 0) {
1112 for (int i=0; i<numberDOF; i++)
1113 accel[i+numberDOF] = accel[i];
1114 }
1115
1116 if (rotation != nullptr)
1117 rotation[0] = rotation[1];
1118 // if we get here we are done
1119 return 0;
1120}
1121
1122
1123

Callers 5

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

Calls

no outgoing calls

Tested by

no test coverage detected