Changeset 567 for XIOS/trunk/src/client_server_mapping.cpp
- Timestamp:
- 03/10/15 10:49:02 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/client_server_mapping.cpp
r554 r567 26 26 } 27 27 28 void CClientServerMapping::computeServerIndexMapping(const CArray<size_t,1>& globalIndexOnClient, 29 const CArray<int,1>& localIndexOnClient, 30 const std::vector<CArray<size_t,1>* >& globalIndexOnServer) 31 { 32 defaultComputeServerIndexMapping(globalIndexOnClient, globalIndexOnServer, &localIndexOnClient); 33 } 34 28 35 /*! 29 36 Compute index of data which are sent to server and index global on server side … … 32 39 */ 33 40 void CClientServerMapping::defaultComputeServerIndexMapping(const CArray<size_t,1>& globalIndexOnClient, 34 const std::vector<CArray<size_t,1>* >& globalIndexServer) 41 const std::vector<CArray<size_t,1>* >& globalIndexServer, 42 const CArray<int,1>* localIndexOnClient) 35 43 { 36 44 int nServer = globalIndexServer.size(); … … 52 60 // Just try to calculate local index server on client side 53 61 (indexGlobalOnServer_[j]).push_back((globalIndexOnClient)(i)); 54 (localIndexSend2Server_[j]).push_back(i); 62 if (0 != localIndexOnClient) (localIndexSend2Server_[j]).push_back((*localIndexOnClient)(i)); 63 else 64 (localIndexSend2Server_[j]).push_back(i); 55 65 continue; 56 66 }
Note: See TracChangeset
for help on using the changeset viewer.