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

Method sendSelf

SRC/domain/component/ElementParameter.cpp:166–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166int
167ElementParameter::sendSelf(int commitTag, Channel &theChannel)
168{
169 ID idData(4);
170 idData(0) = this->getTag();
171 idData(1) = eleTags.Size();
172 idData(2) = argvSize;
173 idData(3) = argc;
174
175 if (theChannel.sendID(0, commitTag, idData) < 0) {
176
177 }
178
179 if (theChannel.sendID(0, commitTag, eleTags) < 0) {
180
181 }
182 /*
183 ID argData(argc-1);
184
185 for (int i=0; i<argc-1; i++) {
186 argData(i) = argv[i+1]-argv[i];
187 }
188
189 if (theChannel.sendID(0, commitTag, argData) < 0) {
190
191 }
192 */
193 Message msgData(argv[0], argvSize);
194 if (theChannel.sendMsg(0, commitTag, msgData) < 0) {
195
196 }
197
198
199 //
200 // add the channel to theChanels array
201 //
202
203 Channel **newChannels = new Channel *[numChannels+1];
204 for (int i=0; i<numChannels; i++)
205 newChannels[i] = theChannels[i];
206
207 newChannels[numChannels] = &theChannel;
208 numChannels++;
209
210 if (theChannels != 0)
211 delete [] theChannels;
212 theChannels = newChannels;
213 return 0;
214}
215
216int
217ElementParameter::recvSelf(int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker)

Callers

nothing calls this directly

Calls 4

getTagMethod · 0.45
SizeMethod · 0.45
sendIDMethod · 0.45
sendMsgMethod · 0.45

Tested by

no test coverage detected