| 264 | } |
| 265 | |
| 266 | int |
| 267 | IncrementalIntegrator::formElementResidual(void) |
| 268 | { |
| 269 | // loop through the FE_Elements and add the residual |
| 270 | FE_Element *elePtr; |
| 271 | |
| 272 | int res = 0; |
| 273 | |
| 274 | FE_EleIter &theEles2 = theAnalysisModel->getFEs(); |
| 275 | while((elePtr = theEles2()) != 0) { |
| 276 | |
| 277 | if (theSOE->addB(elePtr->getResidual(this),elePtr->getID()) <0) { |
| 278 | opserr << "WARNING IncrementalIntegrator::formElementResidual -"; |
| 279 | opserr << " failed in addB for ID " << elePtr->getID(); |
| 280 | res = -2; |
| 281 | } |
| 282 | } |
| 283 | |
| 284 | return res; |
| 285 | } |
| 286 | |
| 287 | /* |
| 288 | int |
no test coverage detected