9 #ifndef __XIOS_CLIENT_SERVER_MAPPING_HPP__
10 #define __XIOS_CLIENT_SERVER_MAPPING_HPP__
15 #include <unordered_map>
39 MPI_Comm& clientIntraComm,
40 const std::vector<int>& connectedServerRank);
52 #endif // __XIOS_CLIENT_SERVER_MAPPING_HPP__
const GlobalIndexMap & getGlobalIndexOnServer() const
Return global index of data on each connected server.
This class computes index of data which are sent to server as well as index of data on server side...
virtual void computeServerIndexMapping(const CArray< size_t, 1 > &globalIndexOnClient, int nbServer)=0
std::unordered_map< int, std::vector< size_t > > GlobalIndexMap
virtual ~CClientServerMapping()
GlobalIndexMap indexGlobalOnServer_
Global index of data on SERVER, which are calculated by client(s)
static std::map< int, int > computeConnectedClients(int nbServer, int nbClient, MPI_Comm &clientIntraComm, const std::vector< int > &connectedServerRank)
Compute how many clients each server will receive data from On client can send data to several server...