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

Method sendSelf

DEVELOPER/core/BeamFiberMaterial.cpp:402–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

400}
401
402int
403BeamFiberMaterial::sendSelf(int commitTag, Channel &theChannel)
404{
405 int res = 0;
406
407 // put tag and associated materials class and database tags into an id and send it
408 static ID idData(3);
409 idData(0) = this->getTag();
410 idData(1) = theMaterial->getClassTag();
411 int matDbTag = theMaterial->getDbTag();
412 if (matDbTag == 0) {
413 matDbTag = theChannel.getDbTag();
414 theMaterial->setDbTag(matDbTag);
415 }
416 idData(2) = matDbTag;
417
418 res = theChannel.sendID(this->getDbTag(), commitTag, idData);
419 if (res < 0) {
420 opserr << "BeamFiberMaterial::sendSelf() - failed to send id data\n";
421 return res;
422 }
423
424 // put the strains in a vector and send it
425 static Vector vecData(3);
426 vecData(0) = Cstrain22;
427 vecData(1) = Cstrain33;
428 vecData(2) = Cgamma23;
429
430 res = theChannel.sendVector(this->getDbTag(), commitTag, vecData);
431 if (res < 0) {
432 opserr << "BeamFiberMaterial::sendSelf() - failed to send vector data\n";
433 return res;
434 }
435
436 // now send the materials data
437 res = theMaterial->sendSelf(commitTag, theChannel);
438 if (res < 0)
439 opserr << "BeamFiberMaterial::sendSelf() - failed to send vector material\n";
440
441 return res;
442}
443
444int
445BeamFiberMaterial::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