Changeset 1235 for XIOS/dev/XIOS_DEV_CMIP6/src/node/grid.cpp
- Timestamp:
- 08/03/17 15:50:40 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/XIOS_DEV_CMIP6/src/node/grid.cpp
r1232 r1235 659 659 660 660 661 if ( nbIndex != localIndex.numElements())661 if (doGridHaveDataDistributed(client) && (nbIndex != localIndex.numElements())) 662 662 ERROR("void CGrid::computeClientIndex()", 663 663 << "Number of local index on client is different from number of received global index" … … 698 698 connectedServerRank_[p].clear(); 699 699 700 if (!doGridHaveDataDistributed( ))700 if (!doGridHaveDataDistributed(client)) 701 701 { 702 702 if (client->isServerLeader()) … … 769 769 if (connectedServerRank_[p].empty()) 770 770 connectedServerRank_[p].push_back(client->clientRank % client->serverSize); 771 771 772 772 nbSenders[p] = clientServerMap_->computeConnectedClients(client->serverSize, client->clientSize, client->intraComm, connectedServerRank_[p]); 773 773 } … … 1373 1373 itIndex = itbIndex; 1374 1374 1375 if (!doGridHaveDataDistributed( ))1375 if (!doGridHaveDataDistributed(client)) 1376 1376 { 1377 1377 if (client->isServerLeader()) … … 1593 1593 for (int i = 0; i < nZoomSize.size(); ++i) 1594 1594 dataSize *= nZoomSize[i]; 1595 // serverDistribution_ = new CDistributionServer(server->intraCommRank, nZoomBegin, nZoomSize,1596 // nZoomBeginGlobal, nGlob);1597 1595 serverDistribution_ = new CDistributionServer(server->intraCommRank, 1598 1596 globalZoomIndex, axis_domain_order, … … 1604 1602 outGlobalIndexFromClient.insert(std::make_pair(rank, outIndex)); 1605 1603 1606 if ( isDataDistributed_)1604 if (doGridHaveDataDistributed(client)) 1607 1605 {} 1608 1606 else … … 1827 1825 } 1828 1826 1829 bool CGrid::doGridHaveDataDistributed( )1827 bool CGrid::doGridHaveDataDistributed(CContextClient* client) 1830 1828 { 1831 1829 if (isScalarGrid()) return false; 1830 else if (0 != client) 1831 { 1832 return (isDataDistributed_ || (1 != client->clientSize) || (1 != client->serverSize)); 1833 } 1832 1834 else 1833 return isDataDistributed_; 1835 return isDataDistributed_; 1834 1836 } 1835 1837
Note: See TracChangeset
for help on using the changeset viewer.