Changeset 1545 for XIOS/dev/branch_openmp/src/node/context.cpp
- Timestamp:
- 06/18/18 20:32:55 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_openmp/src/node/context.cpp
r1538 r1545 25 25 namespace xios { 26 26 27 boost::shared_ptr<CContextGroup> * CContext::root_ptr = 0;28 29 /// ////////////////////// D finitions ////////////////////// ///27 std::shared_ptr<CContextGroup> * CContext::root_ptr = 0; 28 29 /// ////////////////////// Définitions ////////////////////// /// 30 30 31 31 CContext::CContext(void) … … 68 68 CContextGroup* CContext::getRoot(void) 69 69 { 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())); 71 71 return root_ptr->get(); 72 72 } … … 78 78 \return Calendar 79 79 */ 80 boost::shared_ptr<CCalendar> CContext::getCalendar(void) const80 std::shared_ptr<CCalendar> CContext::getCalendar(void) const 81 81 { 82 82 return (this->calendar); … … 89 89 \param[in] newCalendar new calendar 90 90 */ 91 void CContext::setCalendar( boost::shared_ptr<CCalendar> newCalendar)91 void CContext::setCalendar(std::shared_ptr<CCalendar> newCalendar) 92 92 { 93 93 this->calendar = newCalendar; … … 191 191 if (!this->hasChild()) 192 192 { 193 //oss << "<!-- No definition -->" << std::endl; // fait planter l'incr mentation193 //oss << "<!-- No definition -->" << std::endl; // fait planter l'incrémentation 194 194 } 195 195 else … … 257 257 258 258 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 { 264 261 client = new CContextClient(this, intraComm, interComm, cxtServer); 265 262 if (cxtServer) // Attached mode … … 291 288 server = new CContextServer(this, intraCommServer, interCommServer); 292 289 } 293 //else if(CServer::serverLevel == 1) 294 else 295 // initClient is called by primary server 290 291 else // initClient is called by primary server 296 292 { 297 293 clientPrimServer.push_back(new CContextClient(this, intraComm, interComm)); … … 861 857 void CContext::solveAllInheritance(bool apply) 862 858 { 863 // R solution des hritages descendants (cd des hritages de groupes)859 // Résolution des héritages descendants (cà d des héritages de groupes) 864 860 // pour chacun des contextes. 865 861 solveDescInheritance(apply); 866 862 867 // R solution des hritages par rfrence au niveau des fichiers.863 // Résolution des héritages par référence au niveau des fichiers. 868 864 const vector<CFile*> allFiles=CFile::getAll(); 869 865 const vector<CGrid*> allGrids= CGrid::getAll(); … … 889 885 890 886 for (unsigned int i = 0; i < allFiles.size(); i++) 891 if (!allFiles[i]->enabled.isEmpty()) // Si l'attribut 'enabled' est d fini.887 if (!allFiles[i]->enabled.isEmpty()) // Si l'attribut 'enabled' est défini. 892 888 { 893 if (allFiles[i]->enabled.getValue()) // Si l'attribut 'enabled' est fix 889 if (allFiles[i]->enabled.getValue()) // Si l'attribut 'enabled' est fixé à vrai. 894 890 { 895 891 if (allFiles[i]->output_freq.isEmpty()) … … 928 924 929 925 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é \"" 931 927 << getId() << "\" !"); 932 928 … … 1434 1430 idServer_ = this->getId(); 1435 1431 idServer_ += "_server_"; 1436 idServer_ += boost::lexical_cast<string>(i);1432 idServer_ += std::to_string(static_cast<unsigned long long>(i)); 1437 1433 return idServer_; 1438 1434 } … … 1472 1468 if (hasClient && !hasServer) prepareTimeseries(); 1473 1469 1474 //Initialisation du vecteur 'enabledFiles' contenant la liste des fichiers sortir.1470 //Initialisation du vecteur 'enabledFiles' contenant la liste des fichiers à sortir. 1475 1471 findEnabledFiles(); 1476 1472 findEnabledWriteModeFiles();
Note: See TracChangeset
for help on using the changeset viewer.