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

Method sendSelf

DEVELOPER/core/PlateFiberMaterial.cpp:464–502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

462
463
464int
465PlateFiberMaterial::sendSelf(int commitTag, Channel &theChannel)
466{
467 int res = 0;
468
469 // put tag and assocaited materials class and database tags into an id and send it
470 static ID idData(3);
471 idData(0) = this->getTag();
472 idData(1) = theMaterial->getClassTag();
473 int matDbTag = theMaterial->getDbTag();
474 if (matDbTag == 0) {
475 matDbTag = theChannel.getDbTag();
476 theMaterial->setDbTag(matDbTag);
477 }
478 idData(2) = matDbTag;
479
480 res = theChannel.sendID(this->getDbTag(), commitTag, idData);
481 if (res < 0) {
482 opserr << "PlateFiberMaterial::sendSelf() - failed to send id data\n";
483 return res;
484 }
485
486 // put the strains in a vector and send it
487 static Vector vecData(1);
488 vecData(0) = Cstrain22;
489
490 res = theChannel.sendVector(this->getDbTag(), commitTag, vecData);
491 if (res < 0) {
492 opserr << "PlateFiberMaterial::sendSelf() - failed to send vector data\n";
493 return res;
494 }
495
496 // now send the materials data
497 res = theMaterial->sendSelf(commitTag, theChannel);
498 if (res < 0)
499 opserr << "PlateFiberMaterial::sendSelf() - failed to send vector material\n";
500
501 return res;
502}
503
504int
505PlateFiberMaterial::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