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

Method sendSelf

DEVELOPER/core/NodalLoad.cpp:172–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172int
173NodalLoad::sendSelf(int cTag, Channel &theChannel)
174{
175 int dataTag = this->getDbTag();
176 ID data(5);
177 data(0) = this->getTag();
178 data(1) = myNode;
179 if (load != 0)
180 data(2) = load->Size();
181 else
182 data(2) = 0;
183 data(3) = konstant;
184 data(4) = this->getLoadPatternTag();
185
186 int result = theChannel.sendID(dataTag, cTag, data);
187 if (result < 0) {
188 opserr << "NodalLoad::sendSelf - failed to send data\n";
189 return result;
190 }
191
192 if (load != 0){
193 int result = theChannel.sendVector(dataTag, cTag, *load);
194 if (result < 0) {
195 opserr << "NodalLoad::sendSelf - failed to Load data\n";
196 return result;
197 }
198 }
199
200 return 0;
201}
202
203int
204NodalLoad::recvSelf(int cTag, Channel &theChannel,

Callers

nothing calls this directly

Calls 6

getDbTagMethod · 0.45
getTagMethod · 0.45
SizeMethod · 0.45
getLoadPatternTagMethod · 0.45
sendIDMethod · 0.45
sendVectorMethod · 0.45

Tested by

no test coverage detected