| 346 | } |
| 347 | |
| 348 | int |
| 349 | SP_Constraint::sendSelf(int cTag, Channel &theChannel) |
| 350 | { |
| 351 | static Vector data(8); // we send as double to avoid having |
| 352 | // to send two messages. |
| 353 | data(0) = this->getTag(); |
| 354 | data(1) = nodeTag; |
| 355 | data(2) = dofNumber; |
| 356 | data(3) = valueC; |
| 357 | if (isConstant == true) |
| 358 | data(4) = 1.0; |
| 359 | else |
| 360 | data(4) = 0.0; |
| 361 | data(5) = valueR; |
| 362 | data(6) = this->getLoadPatternTag(); |
| 363 | |
| 364 | data(7) = nextTag; |
| 365 | |
| 366 | int result = theChannel.sendVector(this->getDbTag(), cTag, data); |
| 367 | if (result != 0) { |
| 368 | opserr << "WARNING SP_Constraint::sendSelf - error sending Vector data\n"; |
| 369 | return result; |
| 370 | } |
| 371 | |
| 372 | return 0; |
| 373 | } |
| 374 | |
| 375 | int |
| 376 | SP_Constraint::recvSelf(int cTag, Channel &theChannel, |
nothing calls this directly
no test coverage detected