| 525 | |
| 526 | |
| 527 | int |
| 528 | PlaneStressMaterial::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 | |
| 569 | int |
| 570 | PlaneStressMaterial::recvSelf(int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker) |
nothing calls this directly
no test coverage detected