| 170 | } |
| 171 | |
| 172 | int |
| 173 | NodalLoad::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 | |
| 203 | int |
| 204 | NodalLoad::recvSelf(int cTag, Channel &theChannel, |
nothing calls this directly
no test coverage detected