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

Method sendSelf

SRC/domain/component/ElementStateParameter.cpp:149–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147
148
149int
150ElementStateParameter::sendSelf(int commitTag, Channel &theChannel)
151{
152 static ID iData(4);
153 iData(0) = flag;
154 iData(1) = argc;
155 if (theEleIDs != 0)
156 iData(2) = theEleIDs->Size();
157 else
158 iData(2) = 0;
159 iData(3) = getTag();
160
161 theChannel.sendID(commitTag, 0, iData);
162
163 static Vector dData(1);
164 dData(0) = currentValue;
165 theChannel.sendVector(commitTag, 0, dData);
166
167 if (theEleIDs != 0)
168 theChannel.sendID(commitTag, 0, *theEleIDs);
169
170 ID argvData(argc);
171 for (int j=0; j<argc; j++)
172 argvData(j) = strlen(argv[j])+1;
173
174 theChannel.sendID(commitTag, 0, argvData);
175
176 for (int j=0; j<argc; j++) {
177 Message theMessage((char *)argv[j], argvData(j));
178 theChannel.sendMsg(commitTag, 0, theMessage);
179 }
180
181 return 0;
182}
183
184int
185ElementStateParameter::recvSelf(int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker)

Callers

nothing calls this directly

Calls 4

SizeMethod · 0.45
sendIDMethod · 0.45
sendVectorMethod · 0.45
sendMsgMethod · 0.45

Tested by

no test coverage detected