Ignore:
Timestamp:
03/17/17 15:05:36 (7 years ago)
Author:
oabramkina
Message:

dev: Intermediate commit

Done:
Registries: ok with two server levels

To do (on a single server level):
test_complete
reading

File:
1 edited

Legend:

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

    r1071 r1077  
    460460         if (server->intraCommRank==0) CXios::globalRegistry->mergeRegistry(*registryOut) ; 
    461461       } 
    462  
    463 //       for (std::list<MPI_Comm>::iterator it = comms.begin(); it != comms.end(); ++it) 
    464 //         MPI_Comm_free(&(*it)); 
    465 //       comms.clear(); 
    466  
    467462      } 
    468463   } 
     464 
    469465   //! Free internally allocated communicators 
    470466   void CContext::freeComms(void) 
     
    562558   void CContext::closeDefinition(void) 
    563559   { 
    564      // There is nothing client need to send to server 
    565 //      if (hasClient) 
    566 //     if (hasClient && !hasServer) 
    567 //      if (hasClient) 
    568 //      { 
    569 //        // After xml is parsed, there are some more works with post processing 
    570 //        postProcessing(); 
    571 //      } 
    572  
    573 //      setClientServerBuffer(); 
    574  
    575 // //     if (hasClient && !hasServer) 
    576 //      if (hasClient) 
    577 //      { 
    578 //       // Send all attributes of current context to server 
    579 //       this->sendAllAttributesToServer(); 
    580  
    581 //       // Send all attributes of current calendar 
    582 //       CCalendarWrapper::get(CCalendarWrapper::GetDefName())->sendAllAttributesToServer(); 
    583  
    584 //       // We have enough information to send to server 
    585 //       // First of all, send all enabled files 
    586 //        sendEnabledFiles(); 
    587  
    588 //       // Then, send all enabled fields 
    589 //        sendEnabledFields(); 
    590  
    591 //       // At last, we have all info of domain and axis, then send them 
    592 //        sendRefDomainsAxis(); 
    593  
    594 //       // After that, send all grid (if any) 
    595 //        sendRefGrid(); 
    596  
    597 //        // // We have a xml tree on the server side and now, it should be also processed 
    598 //        sendPostProcessing(); 
    599 //      } 
    600  
    601  
    602      // Now tell server that it can process all messages from client 
    603      // if (hasClient) this->sendCloseDefinition(); 
    604560    postProcessingGlobalAttributes(); 
    605561 
     
    611567     if (hasClient && !hasServer) 
    612568    { 
    613       // this->buildFilterGraphOfEnabledFields();  // references are resolved here (access xml file) 
    614569      buildFilterGraphOfFieldsWithReadAccess(); 
    615       // this->solveAllRefOfEnabledFields(true); 
    616570    } 
    617571 
     
    619573    this->processGridEnabledFields(); 
    620574    if (hasClient) this->sendProcessingGridOfEnabledFields(); 
    621     // if (hasClient)        // We have a xml tree on the server side and now, it should be also processed 
    622     //    sendPostProcessing(); 
    623 //    // Now tell server that it can process all messages from client 
    624 ////    if (hasClient && !hasServer) this->sendCloseDefinition(); 
    625    if (hasClient) this->sendCloseDefinition(); 
     575    if (hasClient) this->sendCloseDefinition(); 
    626576 
    627577    // Nettoyage de l'arborescence 
    628 //    if (hasClient && !hasServer) CleanTree(); // Only on client side?? 
    629578    if (hasClient) CleanTree(); // Only on client side?? 
    630579 
Note: See TracChangeset for help on using the changeset viewer.