Ignore:
Timestamp:
10/04/17 11:45:14 (7 years ago)
Author:
yushan
Message:

EP updated

Location:
XIOS/dev/branch_openmp/src/node
Files:
3 edited

Legend:

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

    r1205 r1287  
    2121 
    2222  //shared_ptr<CContextGroup> CContext::root; 
    23   shared_ptr<CContextGroup> * CContext::root_ptr = 0; 
     23  boost::shared_ptr<CContextGroup> * CContext::root_ptr = 0; 
    2424 
    2525   /// ////////////////////// Dfinitions ////////////////////// /// 
     
    6363      if(root_ptr == 0) //root_ptr = new shared_ptr<CContextGroup>; 
    6464      // 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())); 
    6666      return root_ptr->get(); 
    6767   } 
  • XIOS/dev/branch_openmp/src/node/context.hpp

    r1134 r1287  
    208208         //static shared_ptr<CContextGroup> root; 
    209209 
    210          static shared_ptr<CContextGroup> *root_ptr; 
     210         static boost::shared_ptr<CContextGroup> *root_ptr; 
    211211         #pragma omp threadprivate(root_ptr) 
    212212 
  • XIOS/dev/branch_openmp/src/node/file.cpp

    r1205 r1287  
    482482         if (isOpen) data_out->closeFile(); 
    483483 
    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, 
    485485                                                              static_cast< ::MPI_Comm >(fileComm.mpi_comm), multifile, isCollective, time_counter_name)); 
    486486        isOpen = true; 
     
    600600      multifile = true; 
    601601      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)); 
    604604      isOpen = true; 
    605605      #else 
    606606      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)); 
    609609      isOpen = true; 
    610610      #endif 
Note: See TracChangeset for help on using the changeset viewer.