45 #include <boost/mpi/communicator.hpp>
55 boost::mpi::communicator* _comm;
67 SRManager(boost::mpi::communicator* comm);
84 SRManager(boost::mpi::communicator* comm,
int* toSend,
int* toRecv);
103 void setVal(
int pos,
int val);
141 void retrieveSources(
const std::vector<int>& targets, std::vector<int>& sources,
int tag = 0);
void clear()
Clears the send and receive arrays (sets all values to 0).
Definition: SRManager.cpp:80
void setVal(int pos, int val)
Sets the value at the given index in the array.
Definition: SRManager.cpp:76
SRManager(boost::mpi::communicator *comm)
Creates an SRManager that uses the specified communicator.
Definition: SRManager.cpp:46
void retrieveSources()
Performs the actual send operation, populating the receive array with values from the other processes...
Definition: SRManager.cpp:86
void mark(int pos)
Marks the position in the array as 'true' (sets to one).
Definition: SRManager.cpp:72
Coordinates send and receive between processes by notifying processes to expect a send from X other p...
Definition: SRManager.h:52