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

Method sendSelf

DEVELOPER/core/SP_Constraint.cpp:348–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346}
347
348int
349SP_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
375int
376SP_Constraint::recvSelf(int cTag, Channel &theChannel,

Callers

nothing calls this directly

Calls 4

getLoadPatternTagMethod · 0.95
getTagMethod · 0.45
sendVectorMethod · 0.45
getDbTagMethod · 0.45

Tested by

no test coverage detected