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/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   } 
Note: See TracChangeset for help on using the changeset viewer.