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

Method sendSelf

DEVELOPER/core/PlaneStressMaterial.cpp:527–567  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

525
526
527int
528PlaneStressMaterial::sendSelf(int commitTag, Channel &theChannel)
529{
530 int res = 0;
531
532 // put tag and assocaited materials class and database tags into an id and send it
533 static ID idData(3);
534 idData(0) = this->getTag();
535 idData(1) = theMaterial->getClassTag();
536 int matDbTag = theMaterial->getDbTag();
537 if (matDbTag == 0) {
538 matDbTag = theChannel.getDbTag();
539 theMaterial->setDbTag(matDbTag);
540 }
541 idData(2) = matDbTag;
542
543 res = theChannel.sendID(this->getDbTag(), commitTag, idData);
544 if (res < 0) {
545 opserr << "PlaneStressMaterial::sendSelf() - failed to send id data\n";
546 return res;
547 }
548
549 // put the strains in a vector and send it
550 static Vector vecData(3);
551 vecData(0) = Cstrain22;
552 vecData(1) = Cgamma02;
553 vecData(2) = Cgamma12;
554
555 res = theChannel.sendVector(this->getDbTag(), commitTag, vecData);
556 if (res < 0) {
557 opserr << "PlaneStressMaterial::sendSelf() - failed to send vector data\n";
558 return res;
559 }
560
561 // now send the materials data
562 res = theMaterial->sendSelf(commitTag, theChannel);
563 if (res < 0)
564 opserr << "PlaneStressMaterial::sendSelf() - failed to send vector material\n";
565
566 return res;
567}
568
569int
570PlaneStressMaterial::recvSelf(int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker)

Callers

nothing calls this directly

Calls 6

getTagMethod · 0.45
getClassTagMethod · 0.45
getDbTagMethod · 0.45
setDbTagMethod · 0.45
sendIDMethod · 0.45
sendVectorMethod · 0.45

Tested by

no test coverage detected