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

Method sendSelf

SRC/analysis/analysis/TransientDomainDecompositionAnalysis.cpp:513–589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

511}
512
513int
514TransientDomainDecompositionAnalysis::sendSelf(int commitTag, Channel &theChannel)
515{
516
517 // receive the data identifyng the objects in the aggregation
518 int dataTag = this->getDbTag();
519 static ID data(8);
520
521 if (theAlgorithm == 0) {
522 opserr << "TransientDomainDecompositionAnalysis::sendSelf() - no objects exist!\n";
523 return -1;
524 }
525
526 LinearSOESolver *theSolver = theSOE->getSolver();
527
528 data(0) = theConstraintHandler->getClassTag();
529 data(1) = theDOF_Numberer->getClassTag();
530 data(2) = theAnalysisModel->getClassTag();
531 data(3) = theAlgorithm->getClassTag();
532 data(4) = theSOE->getClassTag();
533 data(5) = theSolver->getClassTag();
534 data(6) = theIntegrator->getClassTag();
535
536 if (theTest != 0)
537 data(7) = theTest->getClassTag();
538 else
539 data(7) = -1;
540
541 theChannel.sendID(dataTag, commitTag, data);
542
543 // invoke sendSelf() on all the objects
544 if ( theConstraintHandler->sendSelf(commitTag, theChannel) != 0) {
545 opserr << "TransientDomainDecompositionAnalysis::sendSelf() - failed to send handler\n";
546 return -1;
547 }
548
549 if ( theDOF_Numberer->sendSelf(commitTag, theChannel) != 0) {
550 opserr << "TransientDomainDecompositionAnalysis::sendSelf() - failed to send numberer\n";
551 return -1;
552 }
553
554 if ( theAnalysisModel->sendSelf(commitTag, theChannel) != 0) {
555 opserr << "TransientDomainDecompositionAnalysis::sendSelf() - failed to send model\n";
556 return -1;
557 }
558
559 if ( theAlgorithm->sendSelf(commitTag, theChannel) != 0) {
560 opserr << "TransientDomainDecompositionAnalysis::sendSelf() - failed to send algorithm\n";
561 return -1;
562 }
563
564 if ( theSOE->sendSelf(commitTag, theChannel) != 0) {
565 opserr << "TransientDomainDecompositionAnalysis::sendSelf() - failed to send SOE\n";
566 return -1;
567 } else
568 ;
569
570 // theSOE->setAnalysisModel(*theAnalysisModel);

Callers

nothing calls this directly

Calls 4

getDbTagMethod · 0.45
getSolverMethod · 0.45
getClassTagMethod · 0.45
sendIDMethod · 0.45

Tested by

no test coverage detected