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

Method sendObj

SRC/actor/channel/MPI_Channel.cpp:95–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93
94
95int
96MPI_Channel::sendObj(int commitTag,
97 MovableObject &theObject,
98 ChannelAddress *theAddress)
99{
100 // first check address is the only address a MPI_Channel can send to
101 MPI_ChannelAddress *theMPI_ChannelAddress = 0;
102 if (theAddress != 0) {
103 if (theAddress->getType() == MPI_TYPE) {
104 theMPI_ChannelAddress = (MPI_ChannelAddress *)theAddress;
105 otherTag = theMPI_ChannelAddress->otherTag;
106 otherComm= theMPI_ChannelAddress->otherComm;
107 }
108 else {
109 opserr << "MPI_Channel::sendObj() - a MPI_Channel ";
110 opserr << "can only communicate with a MPI_Channel";
111 opserr << " address given is not of type MPI_ChannelAddress\n";
112 return -1;
113 }
114 }
115 return theObject.sendSelf(commitTag, *this);
116}
117
118int
119MPI_Channel::recvObj(int commitTag,

Callers

nothing calls this directly

Calls 2

getTypeMethod · 0.45
sendSelfMethod · 0.45

Tested by

no test coverage detected