Ignore:
Timestamp:
11/20/17 16:29:55 (6 years ago)
Author:
oabramkina
Message:

Changes in case of different number of processes per secondary-server pool.

No incorrect behaviour had been found in the previous versions; this commit is just to play safe.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/XIOS_DEV_CMIP6/src/client_server_mapping_distributed.cpp

    r1054 r1336  
    3535   Compute mapping global index of server which client sends to. 
    3636   \param [in] globalIndexOnClient global index client has 
     37   \param [in] nbServer size of server's intracomm 
    3738*/ 
    38 void CClientServerMappingDistributed::computeServerIndexMapping(const CArray<size_t,1>& globalIndexOnClient) 
     39void CClientServerMappingDistributed::computeServerIndexMapping(const CArray<size_t,1>& globalIndexOnClient, int nbServer) 
    3940{ 
    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; 
    4641 
    4742  ccDHT_->computeIndexInfoMapping(globalIndexOnClient); 
Note: See TracChangeset for help on using the changeset viewer.