Changeset 1287 for XIOS/dev/branch_openmp/src/node
- Timestamp:
- 10/04/17 11:45:14 (7 years ago)
- Location:
- XIOS/dev/branch_openmp/src/node
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_openmp/src/node/context.cpp
r1205 r1287 21 21 22 22 //shared_ptr<CContextGroup> CContext::root; 23 shared_ptr<CContextGroup> * CContext::root_ptr = 0;23 boost::shared_ptr<CContextGroup> * CContext::root_ptr = 0; 24 24 25 25 /// ////////////////////// Dfinitions ////////////////////// /// … … 63 63 if(root_ptr == 0) //root_ptr = new shared_ptr<CContextGroup>; 64 64 // if (root_ptr->get()==NULL) 65 root_ptr = new shared_ptr<CContextGroup>(new CContextGroup(xml::CXMLNode::GetRootName()));65 root_ptr = new boost::shared_ptr<CContextGroup>(new CContextGroup(xml::CXMLNode::GetRootName())); 66 66 return root_ptr->get(); 67 67 } -
XIOS/dev/branch_openmp/src/node/context.hpp
r1134 r1287 208 208 //static shared_ptr<CContextGroup> root; 209 209 210 static shared_ptr<CContextGroup> *root_ptr;210 static boost::shared_ptr<CContextGroup> *root_ptr; 211 211 #pragma omp threadprivate(root_ptr) 212 212 -
XIOS/dev/branch_openmp/src/node/file.cpp
r1205 r1287 482 482 if (isOpen) data_out->closeFile(); 483 483 484 data_out = shared_ptr<CDataOutput>(new CNc4DataOutput(this, oss.str(), append, useClassicFormat, useCFConvention,484 data_out = boost::shared_ptr<CDataOutput>(new CNc4DataOutput(this, oss.str(), append, useClassicFormat, useCFConvention, 485 485 static_cast< ::MPI_Comm >(fileComm.mpi_comm), multifile, isCollective, time_counter_name)); 486 486 isOpen = true; … … 600 600 multifile = true; 601 601 if (isOpen) data_out->closeFile(); 602 if (time_counter_name.isEmpty()) data_in = shared_ptr<CDataInput>(new CNc4DataInput(oss.str(), static_cast< ::MPI_Comm >(fileComm.mpi_comm), multifile, isCollective));603 else data_in = shared_ptr<CDataInput>(new CNc4DataInput(oss.str(), static_cast< ::MPI_Comm >(fileComm.mpi_comm), multifile, isCollective, time_counter_name));602 if (time_counter_name.isEmpty()) data_in = boost::shared_ptr<CDataInput>(new CNc4DataInput(oss.str(), static_cast< ::MPI_Comm >(fileComm.mpi_comm), multifile, isCollective)); 603 else data_in = boost::shared_ptr<CDataInput>(new CNc4DataInput(oss.str(), static_cast< ::MPI_Comm >(fileComm.mpi_comm), multifile, isCollective, time_counter_name)); 604 604 isOpen = true; 605 605 #else 606 606 if (isOpen) data_out->closeFile(); 607 if (time_counter_name.isEmpty()) data_in = shared_ptr<CDataInput>(new CNc4DataInput(oss.str(), static_cast< ::MPI_Comm >(fileComm.mpi_comm), multifile, isCollective));608 else data_in = shared_ptr<CDataInput>(new CNc4DataInput(oss.str(), static_cast< ::MPI_Comm >(fileComm.mpi_comm), multifile, isCollective, time_counter_name));607 if (time_counter_name.isEmpty()) data_in = boost::shared_ptr<CDataInput>(new CNc4DataInput(oss.str(), static_cast< ::MPI_Comm >(fileComm.mpi_comm), multifile, isCollective)); 608 else data_in = boost::shared_ptr<CDataInput>(new CNc4DataInput(oss.str(), static_cast< ::MPI_Comm >(fileComm.mpi_comm), multifile, isCollective, time_counter_name)); 609 609 isOpen = true; 610 610 #endif
Note: See TracChangeset
for help on using the changeset viewer.