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

Method recvSelf

DEVELOPER/core/NodalLoad.cpp:203–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203int
204NodalLoad::recvSelf(int cTag, Channel &theChannel,
205 FEM_ObjectBroker &theBroker)
206{
207 int result;
208 int dataTag = this->getDbTag();
209 ID data(5);
210 result = theChannel.recvID(dataTag, cTag, data);
211 if (result < 0) {
212 opserr << "NodalLoad::recvSelf() - failed to recv data\n";
213 return result;
214 }
215 this->setTag(data(0));
216 myNode = data(1);
217 int loadSize = data(2);
218 konstant = (data(3) != 0);
219 this->setLoadPatternTag(data(4));
220 if (loadSize != 0) {
221 load = new Vector(data(2));
222 result = theChannel.recvVector(dataTag, cTag, *load);
223 if (result < 0) {
224 opserr << "NodalLoad::recvSelf() - failed to recv load\n";
225 return result;
226 }
227 }
228
229 return 0;
230}
231
232
233void

Callers

nothing calls this directly

Calls 5

getDbTagMethod · 0.45
recvIDMethod · 0.45
setTagMethod · 0.45
setLoadPatternTagMethod · 0.45
recvVectorMethod · 0.45

Tested by

no test coverage detected