| 462 | |
| 463 | |
| 464 | int |
| 465 | PlateFiberMaterial::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 | |
| 504 | int |
| 505 | PlateFiberMaterial::recvSelf(int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker) |
nothing calls this directly
no test coverage detected