| 373 | } |
| 374 | |
| 375 | int |
| 376 | SP_Constraint::recvSelf(int cTag, Channel &theChannel, |
| 377 | FEM_ObjectBroker &theBroker) |
| 378 | { |
| 379 | static Vector data(8); // we sent the data as double to avoid having to send |
| 380 | // two messages |
| 381 | int result = theChannel.recvVector(this->getDbTag(), cTag, data); |
| 382 | if (result < 0) { |
| 383 | opserr << "WARNING SP_Constraint::recvSelf - error receiving Vector data\n"; |
| 384 | return result; |
| 385 | } |
| 386 | |
| 387 | // if o.k. set the data |
| 388 | this->setTag((int)data(0)); |
| 389 | nodeTag = (int)data(1); |
| 390 | dofNumber = (int)data(2); |
| 391 | valueC = data(3); |
| 392 | |
| 393 | if (data(4) == 1.0) |
| 394 | isConstant = true; |
| 395 | else |
| 396 | isConstant = false; |
| 397 | valueR = data(5); |
| 398 | valueC = valueR; |
| 399 | this->setLoadPatternTag((int)data(6)); |
| 400 | |
| 401 | nextTag = (int)data(7); |
| 402 | |
| 403 | return 0; |
| 404 | } |
| 405 | |
| 406 | |
| 407 | void |
nothing calls this directly
no test coverage detected