MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / recvSelf

Method recvSelf

DEVELOPER/core/SP_Constraint.cpp:375–404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373}
374
375int
376SP_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
407void

Callers

nothing calls this directly

Calls 4

setLoadPatternTagMethod · 0.95
recvVectorMethod · 0.45
getDbTagMethod · 0.45
setTagMethod · 0.45

Tested by

no test coverage detected