Ignore:
Timestamp:
06/18/18 20:32:55 (6 years ago)
Author:
yushan
Message:

branch_openmp merged with trunk r1544

File:
1 edited

Legend:

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

    r1538 r1545  
    2525namespace xios { 
    2626 
    27   boost::shared_ptr<CContextGroup> * CContext::root_ptr = 0; 
    28  
    29    /// ////////////////////// Dfinitions ////////////////////// /// 
     27  std::shared_ptr<CContextGroup> * CContext::root_ptr = 0; 
     28 
     29   /// ////////////////////// Définitions ////////////////////// /// 
    3030 
    3131   CContext::CContext(void) 
     
    6868   CContextGroup* CContext::getRoot(void) 
    6969   { 
    70       if(root_ptr == 0) root_ptr = new boost::shared_ptr<CContextGroup>(new CContextGroup(xml::CXMLNode::GetRootName())); 
     70      if(root_ptr == 0) root_ptr = new std::shared_ptr<CContextGroup>(new CContextGroup(xml::CXMLNode::GetRootName())); 
    7171      return root_ptr->get(); 
    7272   } 
     
    7878   \return Calendar 
    7979   */ 
    80    boost::shared_ptr<CCalendar> CContext::getCalendar(void) const 
     80   std::shared_ptr<CCalendar> CContext::getCalendar(void) const 
    8181   { 
    8282      return (this->calendar); 
     
    8989   \param[in] newCalendar new calendar 
    9090   */ 
    91    void CContext::setCalendar(boost::shared_ptr<CCalendar> newCalendar) 
     91   void CContext::setCalendar(std::shared_ptr<CCalendar> newCalendar) 
    9292   { 
    9393      this->calendar = newCalendar; 
     
    191191      if (!this->hasChild()) 
    192192      { 
    193          //oss << "<!-- No definition -->" << std::endl; // fait planter l'incrmentation 
     193         //oss << "<!-- No definition -->" << std::endl; // fait planter l'incrémentation 
    194194      } 
    195195      else 
     
    257257      
    258258 
    259       
    260       //if (CServer::serverLevel == 0) 
    261       if (CServer::serverLevel != 1) 
    262       // initClient is called by client 
    263       { 
     259     if (CServer::serverLevel != 1) // initClient is called by client 
     260     { 
    264261       client = new CContextClient(this, intraComm, interComm, cxtServer); 
    265262       if (cxtServer) // Attached mode 
     
    291288       server = new CContextServer(this, intraCommServer, interCommServer); 
    292289     } 
    293      //else if(CServer::serverLevel == 1) 
    294      else 
    295      // initClient is called by primary server 
     290 
     291     else // initClient is called by primary server 
    296292     { 
    297293       clientPrimServer.push_back(new CContextClient(this, intraComm, interComm)); 
     
    861857   void CContext::solveAllInheritance(bool apply) 
    862858   { 
    863      // Rsolution des hritages descendants (cd des hritages de groupes) 
     859     // Résolution des héritages descendants (càd des héritages de groupes) 
    864860     // pour chacun des contextes. 
    865861      solveDescInheritance(apply); 
    866862 
    867      // Rsolution des hritages par rfrence au niveau des fichiers. 
     863     // Résolution des héritages par référence au niveau des fichiers. 
    868864      const vector<CFile*> allFiles=CFile::getAll(); 
    869865      const vector<CGrid*> allGrids= CGrid::getAll(); 
     
    889885 
    890886      for (unsigned int i = 0; i < allFiles.size(); i++) 
    891          if (!allFiles[i]->enabled.isEmpty()) // Si l'attribut 'enabled' est dfini. 
     887         if (!allFiles[i]->enabled.isEmpty()) // Si l'attribut 'enabled' est défini. 
    892888         { 
    893             if (allFiles[i]->enabled.getValue()) // Si l'attribut 'enabled' est fix  vrai. 
     889            if (allFiles[i]->enabled.getValue()) // Si l'attribut 'enabled' est fixé à vrai. 
    894890            { 
    895891              if (allFiles[i]->output_freq.isEmpty()) 
     
    928924 
    929925      if (enabledFiles.size() == 0) 
    930          DEBUG(<<"Aucun fichier ne va tre sorti dans le contexte nomm \"" 
     926         DEBUG(<<"Aucun fichier ne va être sorti dans le contexte nommé \"" 
    931927               << getId() << "\" !"); 
    932928 
     
    14341430     idServer_ = this->getId(); 
    14351431     idServer_ += "_server_"; 
    1436      idServer_ += boost::lexical_cast<string>(i); 
     1432     idServer_ += std::to_string(static_cast<unsigned long long>(i)); 
    14371433     return idServer_; 
    14381434   } 
     
    14721468      if (hasClient && !hasServer) prepareTimeseries(); 
    14731469 
    1474       //Initialisation du vecteur 'enabledFiles' contenant la liste des fichiers sortir. 
     1470      //Initialisation du vecteur 'enabledFiles' contenant la liste des fichiers à sortir. 
    14751471      findEnabledFiles(); 
    14761472      findEnabledWriteModeFiles(); 
Note: See TracChangeset for help on using the changeset viewer.