Changeset 1258 for XIOS/dev/XIOS_DEV_CMIP6/src/node/axis.cpp
- Timestamp:
- 09/11/17 17:02:48 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/XIOS_DEV_CMIP6/src/node/axis.cpp
r1249 r1258 453 453 if (context->hasClient) 454 454 { 455 if ( (orderPositionInGrid == CServerDistributionDescription::defaultDistributedDimension(globalDim.size(), distType))456 || (index.numElements() != n_glo))457 computeConnectedClients(globalDim, orderPositionInGrid, distType);455 if (orderPositionInGrid == CServerDistributionDescription::defaultDistributedDimension(globalDim.size(), distType)) 456 computeConnectedClients(globalDim, orderPositionInGrid, distType); 457 else if (index.numElements() != n_glo) computeConnectedClients(globalDim, orderPositionInGrid, CServerDistributionDescription::ROOT_DISTRIBUTION); 458 458 } 459 459 … … 589 589 590 590 // Describe the distribution of server side 591 CServerDistributionDescription serverDescription(nGlobAxis, nbServer); 591 592 CServerDistributionDescription serverDescription(nGlobAxis, nbServer, distType); 593 592 594 std::vector<int> serverZeroIndex; 593 595 serverZeroIndex = serverDescription.computeServerGlobalIndexInRange(std::make_pair<size_t,size_t>(indexBegin, indexEnd), 0); … … 606 608 607 609 indSrv_[client].swap(globalIndexAxisOnServer); 610 611 if (distType==CServerDistributionDescription::ROOT_DISTRIBUTION) 612 { 613 for(int i=1; i<nbServer; ++i) indSrv_[client].insert(pair<int, vector<size_t> >(i,indSrv_[client][0]) ) ; 614 serverZeroIndexLeader.clear() ; 615 } 616 608 617 CClientServerMapping::GlobalIndexMap::const_iterator it = indSrv_[client].begin(), 609 618 ite = indSrv_[client].end(); 610 611 for (it = indSrv_[client].begin(); it != ite; ++it) { 612 connectedServerRank_[client].push_back(it->first); 613 } 619 620 for (it = indSrv_[client].begin(); it != ite; ++it) connectedServerRank_[client].push_back(it->first); 614 621 615 622 for (std::list<int>::const_iterator it = serverZeroIndexLeader.begin(); it != serverZeroIndexLeader.end(); ++it)
Note: See TracChangeset
for help on using the changeset viewer.