Ignore:
Timestamp:
05/11/17 16:12:23 (7 years ago)
Author:
yushan
Message:

log OK with threads

File:
1 edited

Legend:

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

    r1115 r1128  
    247247     hasClient=true; 
    248248      
    249      #pragma omp critical 
     249 
    250250     client = new CContextClient(this, intraComm, interComm, cxtServer); 
    251251 
     
    253253     MPI_Comm_rank(intraComm, &tmp_rank); 
    254254     MPI_Barrier(intraComm); 
    255  
    256      // #pragma omp critical (_output) 
    257      // printf("Client %d : context.cpp client = new CContextClient, client add = %p, clientRank = %d\n", tmp_rank, &(*client), client->clientRank) ; 
    258255      
    259      #pragma omp critical 
     256 
    260257     registryIn=new CRegistry(intraComm); 
    261       
    262  
     258     
    263259     registryIn->setPath(getId()) ; 
    264       
    265      // #pragma omp critical (_output) 
    266      // printf("Client %d : context.cpp registryIn->setPath, client add = %p, clientRank = %d\n", tmp_rank, &(*client), client->clientRank) ; 
     260    
    267261 
    268262     if (client->clientRank==0) registryIn->fromFile("xios_registry.bin") ; 
     
    825819     MPI_Comm_rank(MPI_COMM_WORLD, &myRank); 
    826820 
    827      //printf("myRank = %d, in postProcessing, isPostProcessed = %d\n", myRank, isPostProcessed); 
    828821     if (isPostProcessed) return; 
    829822 
     
    834827        ERROR("CContext::postProcessing()", << "A timestep must be defined for the context \"" << getId() << "!\"") 
    835828      // Calendar first update to set the current date equals to the start date 
    836       calendar->update(0);  //printf("myRank = %d, calendar->update(0) OK\n", myRank); 
     829      calendar->update(0);  
    837830 
    838831      // Find all inheritance in xml structure 
    839       this->solveAllInheritance();  //printf("myRank = %d, this->solveAllInheritance OK\n", myRank); 
     832      this->solveAllInheritance();   
    840833 
    841834      // Check if some axis, domains or grids are eligible to for compressed indexed output. 
    842835      // Warning: This must be done after solving the inheritance and before the rest of post-processing 
    843       checkAxisDomainsGridsEligibilityForCompressedOutput();  //printf("myRank = %d, checkAxisDomainsGridsEligibilityForCompressedOutput OK\n", myRank); 
     836      checkAxisDomainsGridsEligibilityForCompressedOutput();  
    844837 
    845838      // Check if some automatic time series should be generated 
    846839      // Warning: This must be done after solving the inheritance and before the rest of post-processing 
    847       prepareTimeseries();  //printf("myRank = %d, prepareTimeseries OK\n", myRank); 
     840      prepareTimeseries();  
    848841 
    849842      //Initialisation du vecteur 'enabledFiles' contenant la liste des fichiers  sortir. 
    850       this->findEnabledFiles();  //printf("myRank = %d, this->findEnabledFiles OK\n", myRank); 
    851       this->findEnabledReadModeFiles();  //printf("myRank = %d, this->findEnabledReadModeFiles OK\n", myRank); 
     843      this->findEnabledFiles();  
     844      this->findEnabledReadModeFiles(); 
    852845 
    853846      // Find all enabled fields of each file 
    854       this->findAllEnabledFields();  //printf("myRank = %d, this->findAllEnabledFields OK\n", myRank); 
    855       this->findAllEnabledFieldsInReadModeFiles();  //printf("myRank = %d, this->findAllEnabledFieldsInReadModeFiles OK\n", myRank); 
     847      this->findAllEnabledFields();   
     848      this->findAllEnabledFieldsInReadModeFiles(); 
    856849 
    857850     if (hasClient && !hasServer) 
    858851     { 
    859852      // Try to read attributes of fields in file then fill in corresponding grid (or domain, axis) 
    860       this->readAttributesOfEnabledFieldsInReadModeFiles();  //printf("myRank = %d, this->readAttributesOfEnabledFieldsInReadModeFiles OK\n", myRank); 
     853      this->readAttributesOfEnabledFieldsInReadModeFiles();  
    861854     } 
    862855 
    863856      // Only search and rebuild all reference objects of enable fields, don't transform 
    864       this->solveOnlyRefOfEnabledFields(false);  //printf("myRank = %d, this->solveOnlyRefOfEnabledFields(false) OK\n", myRank); 
     857      this->solveOnlyRefOfEnabledFields(false);   
    865858 
    866859      // Search and rebuild all reference object of enabled fields 
    867       this->solveAllRefOfEnabledFields(false);  //printf("myRank = %d, this->solveAllRefOfEnabledFields(false) OK\n", myRank); 
     860      this->solveAllRefOfEnabledFields(false);   
    868861 
    869862      // Find all fields with read access from the public API 
    870       findFieldsWithReadAccess();  //printf("myRank = %d, findFieldsWithReadAccess OK\n", myRank); 
     863      findFieldsWithReadAccess();  
    871864      // and solve the all reference for them 
    872       solveAllRefOfFieldsWithReadAccess();  //printf("myRank = %d, solveAllRefOfFieldsWithReadAccess OK\n", myRank); 
     865      solveAllRefOfFieldsWithReadAccess();   
    873866 
    874867      isPostProcessed = true; 
     
    11591152   void CContext::updateCalendar(int step) 
    11601153   { 
    1161       //info(50) << "updateCalendar : before : " << calendar->getCurrentDate() << endl; 
    11621154      calendar->update(step); 
    1163       //info(50) << "updateCalendar : after : " << calendar->getCurrentDate() << endl; 
    11641155 
    11651156      if (hasClient) 
Note: See TracChangeset for help on using the changeset viewer.