| 349 | |
| 350 | |
| 351 | int |
| 352 | DomainDecompositionAnalysis::formResidual(void) |
| 353 | { |
| 354 | int result =0; |
| 355 | Domain *the_Domain = this->getDomainPtr(); |
| 356 | |
| 357 | // we check to see if the domain has changed |
| 358 | int stamp = the_Domain->hasDomainChanged(); |
| 359 | if (stamp != domainStamp) { |
| 360 | domainStamp = stamp; |
| 361 | this->domainChanged(); |
| 362 | } |
| 363 | |
| 364 | if (tangFormed == false) { |
| 365 | result = this->formTangent(); |
| 366 | if (result < 0) |
| 367 | return result; |
| 368 | tangFormedCount = -1; // set to minus number so tangent |
| 369 | // is not formed twice at same state |
| 370 | } |
| 371 | |
| 372 | result = theIntegrator->formUnbalance(); |
| 373 | |
| 374 | if (result < 0) |
| 375 | return result; |
| 376 | return theSolver->condenseRHS(numEqn-numExtEqn); |
| 377 | } |
| 378 | |
| 379 | |
| 380 |
no test coverage detected