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

Method formResidual

SRC/analysis/analysis/DomainDecompositionAnalysis.cpp:351–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349
350
351int
352DomainDecompositionAnalysis::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

Callers 3

computeResidualMethod · 0.45
computeResidualMethod · 0.45

Calls 6

domainChangedMethod · 0.95
formTangentMethod · 0.95
condenseRHSMethod · 0.80
getDomainPtrMethod · 0.45
hasDomainChangedMethod · 0.45
formUnbalanceMethod · 0.45

Tested by

no test coverage detected