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

Preperation for merge from trunk

Location:
XIOS/dev/branch_yushan/src/node
Files:
4 edited

Legend:

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

    r1067 r1070  
    390390   void CContext::closeDefinition(void) 
    391391   { 
    392      int myRank; 
    393      MPI_Comm_rank(MPI_COMM_WORLD, &myRank); 
    394  
    395      //printf("myRank = %d, hasClient = %d, hasServer = %d\n", myRank, hasClient, hasServer); 
    396392 
    397393     // There is nothing client need to send to server 
     
    400396       // After xml is parsed, there are some more works with post processing 
    401397       postProcessing();  
    402        //printf("myRank = %d,                postProcessing OK\n", myRank); 
    403      } 
    404      setClientServerBuffer(); //printf("myRank = %d, setClientServerBuffer OK\n", myRank); 
    405  
    406      //printf("hasClient = %d, hasServer = %d\n", hasClient, hasServer); 
     398     } 
     399     setClientServerBuffer();  
    407400 
    408401     if (hasClient && !hasServer) 
    409402     { 
    410403      // Send all attributes of current context to server 
    411       this->sendAllAttributesToServer(); //printf("myRank = %d, this->sendAllAttributesToServer OK\n", myRank); 
     404      this->sendAllAttributesToServer(); 
    412405 
    413406      // Send all attributes of current calendar 
    414407      CCalendarWrapper::get(CCalendarWrapper::GetDefName())->sendAllAttributesToServer(); 
    415       //printf("myRank = %d, CCalendarWrapper::get(CCalendarWrapper::GetDefName())->sendAllAttributesToServer OK\n", myRank); 
    416408 
    417409      // We have enough information to send to server 
    418410      // First of all, send all enabled files 
    419        sendEnabledFiles();  //printf("myRank = %d, sendEnabledFiles OK\n", myRank); 
     411       sendEnabledFiles();  
    420412 
    421413      // Then, send all enabled fields 
    422        sendEnabledFields();  //printf("myRank = %d, sendEnabledFields OK\n", myRank); 
     414       sendEnabledFields();  
    423415 
    424416      // At last, we have all info of domain and axis, then send them 
    425        sendRefDomainsAxis();  //printf("myRank = %d, sendRefDomainsAxis OK\n", myRank); 
    426  
     417       sendRefDomainsAxis();  
    427418      // After that, send all grid (if any) 
    428        sendRefGrid(); //printf("myRank = %d, sendRefGrid OK\n", myRank); 
     419       sendRefGrid();  
    429420    } 
    430421 
     
    435426    if (hasClient) 
    436427    { 
    437       this->buildFilterGraphOfEnabledFields();  //printf("myRank = %d, buildFilterGraphOfEnabledFields OK\n", myRank); 
    438       buildFilterGraphOfFieldsWithReadAccess();  //printf("myRank = %d, buildFilterGraphOfFieldsWithReadAccess OK\n", myRank); 
    439       this->solveAllRefOfEnabledFields(true);  //printf("myRank = %d, solveAllRefOfEnabledFields OK\n", myRank); 
     428      this->buildFilterGraphOfEnabledFields();   
     429      buildFilterGraphOfFieldsWithReadAccess();   
     430      this->solveAllRefOfEnabledFields(true);  
    440431    } 
    441432 
     
    448439    if (hasClient) 
    449440    { 
    450       sendCreateFileHeader();  //printf("myRank = %d, sendCreateFileHeader OK\n", myRank); 
    451  
    452       startPrefetchingOfEnabledReadModeFiles();  //printf("myRank = %d, startPrefetchingOfEnabledReadModeFiles OK\n", myRank); 
     441      sendCreateFileHeader();  
     442 
     443      startPrefetchingOfEnabledReadModeFiles();   
    453444    } 
    454445   } 
  • 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 
  • XIOS/dev/branch_yushan/src/node/field.cpp

    r1037 r1070  
    621621   void CField::solveAllReferenceEnabledField(bool doSending2Server) 
    622622   { 
    623      int myRank; 
    624      MPI_Comm_rank(MPI_COMM_WORLD, &myRank); 
    625  
    626      CContext* context = CContext::getCurrent();  //printf("my_Rank = %d, CContext* context = CContext::getCurrent OK\n", myRank); 
    627      solveOnlyReferenceEnabledField(doSending2Server);  //printf("my_Rank = %d, solveOnlyReferenceEnabledField(doSending2Server) OK\n", myRank); 
     623 
     624     CContext* context = CContext::getCurrent();  
     625     solveOnlyReferenceEnabledField(doSending2Server); 
    628626 
    629627     if (!areAllReferenceSolved) 
     
    633631        if (context->hasClient) 
    634632        { 
    635           solveRefInheritance(true);  //printf("my_Rank = %d, solveRefInheritance(true) OK\n", myRank); 
     633          solveRefInheritance(true);   
    636634          if (hasDirectFieldReference())  
    637635          { 
    638636            getDirectFieldReference()->solveAllReferenceEnabledField(false);  
    639             //printf("my_Rank = %d, getDirectFieldReference()->solveAllReferenceEnabledField(false) OK\n", myRank); 
     637             
    640638          } 
    641639        } 
     
    643641        { 
    644642          solveServerOperation(); 
    645           //printf("my_Rank = %d, solveServerOperation OK\n", myRank); 
     643           
    646644        } 
    647645 
    648         solveGridReference();  //printf("my_Rank = %d, solveGridReference OK\n", myRank); 
    649      } 
    650  
    651      solveGridDomainAxisRef(doSending2Server);  //printf("my_Rank = %d, solveGridDomainAxisRef(doSending2Server) OK\n", myRank); 
     646        solveGridReference();   
     647     } 
     648 
     649     solveGridDomainAxisRef(doSending2Server);  
    652650 
    653651     if (context->hasClient) 
    654652     { 
    655        solveTransformedGrid();  //printf("my_Rank = %d, solveTransformedGrid OK\n", myRank); 
    656      } 
    657  
    658      solveCheckMaskIndex(doSending2Server);  //printf("FIELD.CPP: my_Rank = %d, solveCheckMaskIndex(doSending2Server) OK\n", myRank); 
     653       solveTransformedGrid();  
     654     } 
     655 
     656     solveCheckMaskIndex(doSending2Server);  
    659657   } 
    660658 
  • XIOS/dev/branch_yushan/src/node/grid.cpp

    r1037 r1070  
    166166   void CGrid::checkAttributesAfterTransformation() 
    167167   { 
    168       int myRank; 
    169       MPI_Comm_rank(MPI_COMM_WORLD, &myRank); 
    170  
    171       setAxisList();  //printf("myRank = %d, setAxisList OK\n", myRank); 
    172       std::vector<CAxis*> axisListP = this->getAxis();  //printf("myRank = %d, this->getAxis OK\n", myRank); 
     168       
     169      setAxisList();   
     170      std::vector<CAxis*> axisListP = this->getAxis();  
    173171      if (!axisListP.empty()) 
    174172      { 
     
    183181            axisPositionInGrid_.push_back(idx); 
    184182            ++idx; 
    185             //printf("myRank = %d, axisPositionInGrid_.push_back OK\n", myRank); 
     183             
    186184          } 
    187185          else if (2 == elementDimension) idx += 2; 
     
    191189        { 
    192190          axisListP[i]->checkAttributesOnClientAfterTransformation(globalDim_,axisPositionInGrid_[i]); 
    193           //printf("myRank = %d, axisListP[%d/%d]->checkAttributesOnClientAfterTransformation OK\n", myRank, i, axisListP.size()); 
    194         } 
    195       } 
    196  
    197       setDomainList(); //printf("myRank = %d, setDomainList OK\n", myRank); 
    198       std::vector<CDomain*> domListP = this->getDomains(); //printf("myRank = %d, this->getDomains OK\n", myRank); 
     191        } 
     192      } 
     193 
     194      setDomainList();  
     195      std::vector<CDomain*> domListP = this->getDomains(); 
    199196      if (!domListP.empty()) 
    200197      { 
    201198        for (int i = 0; i < domListP.size(); ++i) 
    202199        { 
    203           //printf("myRank = %d, start domListP[%d]->checkAttributesOnClientAfterTransformation\n", myRank, i); 
    204200          domListP[i]->checkAttributesOnClientAfterTransformation(); 
    205           //printf("myRank = %d, domListP[%d]->checkAttributesOnClientAfterTransformation OK\n", myRank, i); 
    206201        } 
    207202      } 
Note: See TracChangeset for help on using the changeset viewer.