| 400 | } |
| 401 | |
| 402 | int |
| 403 | BeamFiberMaterial::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 | |
| 444 | int |
| 445 | BeamFiberMaterial::recvSelf(int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker) |
nothing calls this directly
no test coverage detected