Ignore:
Timestamp:
03/09/17 18:31:07 (7 years ago)
Author:
yushan
Message:

Preperation for merge from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_yushan/src/node/domain.cpp

    r1053 r1070  
    13031303   void CDomain::checkAttributesOnClientAfterTransformation() 
    13041304   { 
    1305      int myRank; 
    1306      MPI_Comm_rank(MPI_COMM_WORLD, &myRank); 
    1307  
    1308      CContext* context=CContext::getCurrent() ;  //printf("myRank = %d, CContext::getCurrent OK\n", myRank); 
    1309  
    1310      //printf("myRank = %d, this->isClientAfterTransformationChecked = %d\n", myRank, this->isClientAfterTransformationChecked); 
     1305      
     1306     CContext* context=CContext::getCurrent() ; 
     1307 
    13111308     if (this->isClientAfterTransformationChecked) return; 
    1312      //printf("myRank = %d, context->hasClient = %d\n", myRank, context->hasClient); 
    13131309     if (context->hasClient) 
    13141310     { 
    1315        this->checkMask();  //printf("myRank = %d, this->checkMask OK\n", myRank); 
    1316        //printf("myRank = %d, hasLonLat = %d, hasArea = %d, isCompressible_ = %d\n", myRank, hasLonLat, hasArea, isCompressible_); 
     1311       this->checkMask();  
    13171312       if (hasLonLat || hasArea || isCompressible_)  
    13181313        { 
    1319           //printf("myRank = %d, start this->computeConnectedServer\n", myRank); 
    13201314          this->computeConnectedServer(); 
    1321           //printf("myRank = %d, this->computeConnectedServer OK\n", myRank); 
    1322         } 
    1323        //printf("myRank = %d, hasLonLat = %d\n", myRank, hasLonLat); 
     1315        } 
    13241316       if (hasLonLat)  
    13251317        { 
    13261318          this->completeLonLatClient(); 
    1327           //printf("myRank = %d, this->completeLonLatClient OK\n", myRank); 
    13281319        } 
    13291320     } 
     
    14601451  void CDomain::computeConnectedServer(void) 
    14611452  { 
    1462     int myRank; 
    1463     MPI_Comm_rank(MPI_COMM_WORLD, &myRank); 
    14641453 
    14651454    CContext* context=CContext::getCurrent() ; 
     
    15761565    else serverDescription.computeServerGlobalIndexInRange(std::make_pair<size_t,size_t>(indexBegin, indexEnd), 1); 
    15771566 
    1578     //printf("myRank = %d, check 7 OK\n", myRank); 
    1579  
    15801567    CClientServerMapping* clientServerMap = new CClientServerMappingDistributed(serverDescription.getGlobalIndexRange(), 
    15811568                                                                                client->intraComm); 
    1582     //printf("myRank = %d new OK\n", myRank); 
    1583  
    15841569    clientServerMap->computeServerIndexMapping(globalIndexDomain);   
    1585     //printf("myRank = %d, clientServerMap->computeServerIndexMapping(globalIndexDomain) OK\n", myRank); 
    15861570     
    15871571    const CClientServerMapping::GlobalIndexMap& globalIndexDomainOnServer = clientServerMap->getGlobalIndexOnServer(); 
    1588     //printf("myRank = %d, clientServerMap->getGlobalIndexOnServer OK\n", myRank); 
    15891572     
    1590     //printf("myRank = %d, check 8 OK\n", myRank); 
    1591  
    15921573    CClientServerMapping::GlobalIndexMap::const_iterator it  = globalIndexDomainOnServer.begin(), 
    15931574                                                         ite = globalIndexDomainOnServer.end(); 
     
    16221603    } 
    16231604 
    1624     //printf("myRank = %d, check 9 OK\n", myRank); 
    1625  
    16261605    connectedServerRank_.clear(); 
    16271606    for (it = globalIndexDomainOnServer.begin(); it != ite; ++it) { 
     
    16321611 
    16331612    delete clientServerMap; 
    1634     //printf("myRank = %d, check 10 OK\n", myRank); 
    16351613  } 
    16361614 
Note: See TracChangeset for help on using the changeset viewer.