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

Method recvSelf

DEVELOPER/recorder/SumElementForcesRecorder.cpp:269–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267}
268
269int
270SumElementForcesRecorder::recvSelf(int commitTag, Channel &theChannel,
271 FEM_ObjectBroker &theBroker)
272{
273 // receive from the sending object the ID
274 static ID idData(5);
275 if (theChannel.recvID(0, commitTag, idData) < 0) {
276 opserr << "SumElementForcesRecorder::recvSelf() - failed to recv idData\n";
277 return -1;
278 }
279
280 // with the data received
281 // setTag
282 // resize the eleID array
283 // set echoTimeFlag
284 // get an outputHandler
285
286 this->setTag(idData(0));
287 eleID.resize(idData(1));
288 idData(2) = theOutput->getClassTag();
289 if (idData(3) == 0)
290 echoTimeFlag = true;
291 else
292 echoTimeFlag = false;
293
294 if (theOutput != 0 && theOutput->getClassTag() != idData(4))
295 delete theOutput;
296
297 theOutput = theBroker.getPtrNewStream(idData(4));
298 if (theOutput == 0) {
299 opserr << "SumElementForcesRecorder::recvSelf() - failed to get Output of correct type\n";
300 return -1;
301 }
302
303 // receive eleID
304 if (theChannel.recvID(0, commitTag, eleID) < 0) {
305 opserr << "SumElementForcesRecorder::recvSelf() - failed to recv eleID\n";
306 return -1;
307 }
308
309 // get theOutput to receive data
310 if (theOutput->recvSelf(commitTag, theChannel, theBroker) < 0) {
311 opserr << "SumElementForcesRecorder::sendSelf() - failed to send theOutput\n";
312 return -1;
313 }
314
315
316 return 0;
317}
318
319
320#ifdef _USRDLL

Callers

nothing calls this directly

Calls 5

recvIDMethod · 0.45
setTagMethod · 0.45
resizeMethod · 0.45
getClassTagMethod · 0.45
getPtrNewStreamMethod · 0.45

Tested by

no test coverage detected