| 1157 | |
| 1158 | |
| 1159 | int |
| 1160 | Node::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 |
no outgoing calls
no test coverage detected