Changeset 569 for XIOS/trunk/src/client_server_mapping.cpp
- Timestamp:
- 03/10/15 10:49:13 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/client_server_mapping.cpp
r568 r569 3 3 \author Ha NGUYEN 4 4 \since 04 Feb 2015 5 \date 0 6 Feb20155 \date 09 Mars 2015 6 6 7 7 \brief Mapping between index client and server. … … 20 20 } 21 21 22 void CClientServerMapping::computeServerIndexMapping(const CArray<size_t,1>& globalIndexOnClient, 23 const CArray<int,1>& localIndexOnClient) 24 { 25 // defaultComputeServerIndexMapping(globalIndexOnClient, globalIndexServer); 26 } 27 28 22 /*! 23 Compute mapping global index of server which client sends to. 24 \param [in] globalIndexOnClient global index on client 25 \param [in] globalIndexServer global index of servers 26 */ 29 27 void CClientServerMapping::computeServerIndexMapping(const CArray<size_t,1>& globalIndexOnClient, 30 28 const std::vector<CArray<size_t,1>* >& globalIndexServer) … … 33 31 } 34 32 35 //void CClientServerMapping::computeServerIndexMapping(const CArray<size_t,1>& globalIndexOnClient,36 // const CArray<int,1>& localIndexOnClient,37 // const std::vector<CArray<size_t,1>* >& globalIndexOfServer)38 //{39 // defaultComputeServerIndexMapping(globalIndexOnClient, globalIndexOfServer, &localIndexOnClient);40 //}41 42 33 /*! 43 34 Compute index of data which are sent to server and index global on server side 44 35 \param [in] globalIndexOnClient global index of data on client 45 36 \param [in] globalIndexServer global index of server(s) 37 \param [in] localIndexOnClient local index of data on client which are sent to server 46 38 */ 47 39 void CClientServerMapping::defaultComputeServerIndexMapping(const CArray<size_t,1>& globalIndexOnClient, … … 129 121 for(int n=0;n<recvSize;n++) clientRes[recvBuff[n]]++ ; 130 122 131 // std::map<int,int> nbSenders;132 123 for(int n=0;n<nbConnectedServer;n++) 133 124 {
Note: See TracChangeset
for help on using the changeset viewer.