Ignore:
Timestamp:
12/14/18 11:20:33 (5 years ago)
Author:
oabramkina
Message:

Bugfix for NEMO-like land processes elimination.

Values describing a domain (latitude, longitude, bounds,...) are set to -1 on land processes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/branchs/xios-2.5/src/node/axis.cpp

    r1566 r1624  
    657657          connectedServerRank_[nbServer].push_back(client->clientRank % client->serverSize); 
    658658 
    659          nbSenders[nbServer] = CClientServerMapping::computeConnectedClients(client->serverSize, client->clientSize, client->intraComm, connectedServerRank_[nbServer]); 
     659        nbSenders[nbServer] = CClientServerMapping::computeConnectedClients(client->serverSize, client->clientSize, client->intraComm, connectedServerRank_[nbServer]); 
    660660 
    661661        delete clientServerMap; 
     
    703703        }                  
    704704      } 
     705 
     706//    localIndexToWriteOnServer.resize(writtenGlobalIndex.numElements()); 
     707//    nbWritten = 0; 
     708//    for (itSrv = itSrvb; itSrv != itSrve; ++itSrv) 
     709//    { 
     710//      indGlo = *itSrv; 
     711//      if (ite != globalLocalIndexMap_.find(indGlo)) 
     712//      { 
     713//        localIndexToWriteOnServer(nbWritten) = globalLocalIndexMap_[indGlo]; 
     714//      } 
     715//      else 
     716//      { 
     717//        localIndexToWriteOnServer(nbWritten) = -1; 
     718//      } 
     719//      ++nbWritten; 
     720//    } 
    705721 
    706722      localIndexToWriteOnServer.resize(writtenGlobalIndex.numElements()); 
     
    12931309         if (0 == globalLocalIndexMap_.count(gloInd)) 
    12941310         { 
    1295            index(nbIndLoc) = gloInd % n_glo;            
    1296            globalLocalIndexMap_[gloInd] = nbIndLoc;   
     1311           index(nbIndexGlob) = gloInd % n_glo; 
     1312           globalLocalIndexMap_[gloInd] = nbIndexGlob; 
     1313//           index(nbIndLoc) = gloInd % n_glo;  
     1314//           globalLocalIndexMap_[gloInd] = nbIndLoc;   
    12971315           ++nbIndexGlob; 
    12981316         }  
     
    13451363    } 
    13461364     
    1347     int nbCompressedData = 0;  
     1365    int nbCompressedData = 0; 
    13481366    for (idx = 0; idx < nonCompressedData.numElements(); ++idx) 
    13491367    { 
    13501368      if (0 <= nonCompressedData(idx)) 
    1351         ++nbCompressedData;         
     1369        ++nbCompressedData; 
    13521370    } 
    13531371 
     
    13591377      { 
    13601378        data_index(nbCompressedData) = idx % n; 
    1361         ++nbCompressedData;         
     1379        ++nbCompressedData; 
    13621380      } 
    13631381    } 
     
    14761494      clientsSet.insert(contextClient); 
    14771495    } 
    1478 } 
     1496  } 
    14791497 
    14801498  void CAxis::parse(xml::CXMLNode & node) 
Note: See TracChangeset for help on using the changeset viewer.