- Timestamp:
- 11/20/17 16:29:55 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/XIOS_DEV_CMIP6/src/client_server_mapping_distributed.cpp
r1054 r1336 35 35 Compute mapping global index of server which client sends to. 36 36 \param [in] globalIndexOnClient global index client has 37 \param [in] nbServer size of server's intracomm 37 38 */ 38 void CClientServerMappingDistributed::computeServerIndexMapping(const CArray<size_t,1>& globalIndexOnClient )39 void CClientServerMappingDistributed::computeServerIndexMapping(const CArray<size_t,1>& globalIndexOnClient, int nbServer) 39 40 { 40 CContext* context=CContext::getCurrent() ;41 // CContextClient* client=context->client ;42 // For now the assumption is that secondary server pools consist of the same number of procs.43 // CHANGE the line below if the assumption changes.44 CContextClient* client = (0 != context->clientPrimServer.size()) ? context->clientPrimServer[0] : context->client;45 int nbServer=client->serverSize;46 41 47 42 ccDHT_->computeIndexInfoMapping(globalIndexOnClient);
Note: See TracChangeset
for help on using the changeset viewer.