Changeset 1287 for XIOS/dev/branch_openmp/src
- Timestamp:
- 10/04/17 11:45:14 (7 years ago)
- Location:
- XIOS/dev/branch_openmp/src
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_openmp/src/client_server_mapping.cpp
r1220 r1287 65 65 66 66 67 for(int i=0; i<nbClient; i++)68 printf("MPI_Allgather : recvCount[%d] = %d\n", i, recvCount[i]);67 // for(int i=0; i<nbClient; i++) 68 // printf("MPI_Allgather : recvCount[%d] = %d\n", i, recvCount[i]); 69 69 70 70 displ[0]=0 ; … … 76 76 MPI_Allgatherv(sendBuff,nbConnectedServer,MPI_INT,recvBuff,recvCount,displ,MPI_INT,clientIntraComm) ; 77 77 78 for(int i=0; i<recvSize; i++)79 printf("MPI_Allgatherv : recvBuff[%d] = %d\n", i, recvBuff[i]);78 // for(int i=0; i<recvSize; i++) 79 // printf("MPI_Allgatherv : recvBuff[%d] = %d\n", i, recvBuff[i]); 80 80 81 81 -
XIOS/dev/branch_openmp/src/data_output.hpp
r1096 r1287 59 59 virtual void writeTimeDimension_(void) = 0; 60 60 virtual void writeTimeAxis_ (CField* field, 61 const shared_ptr<CCalendar> cal) = 0;61 const boost::shared_ptr<CCalendar> cal) = 0; 62 62 63 63 /// Propriétés protégées /// -
XIOS/dev/branch_openmp/src/filter/spatial_transform_filter.cpp
r1220 r1287 53 53 CSpatialTransformFilterEngine* spaceFilter = static_cast<CSpatialTransformFilterEngine*>(engine); 54 54 CDataPacketPtr outputPacket = spaceFilter->applyFilter(data, outputDefaultValue); 55 printf("spalceFilter applied\n");56 55 if (outputPacket) 57 56 onOutputReady(outputPacket); -
XIOS/dev/branch_openmp/src/group_factory_decl.cpp
r976 r1287 5 5 { 6 6 # define macro(U) \ 7 template void CGroupFactory::AddGroup<U>( shared_ptr<U> pgroup,shared_ptr<U> cgroup); \8 template void CGroupFactory::AddChild<U>( shared_ptr<U> group,shared_ptr<U::RelChild> child); \9 template shared_ptr<U> CGroupFactory::GetGroup<U>(shared_ptr<U> group, const StdString & id); \10 template shared_ptr<U::RelChild> CGroupFactory::GetChild<U>(shared_ptr<U> group, const StdString & id); \11 template int CGroupFactory::GetGroupNum<U>( shared_ptr<U> group); \12 template int CGroupFactory::GetGroupIdNum<U>( shared_ptr<U> group); \13 template int CGroupFactory::GetChildNum<U>( shared_ptr<U> group); \7 template void CGroupFactory::AddGroup<U>(boost::shared_ptr<U> pgroup,boost::shared_ptr<U> cgroup); \ 8 template void CGroupFactory::AddChild<U>(boost::shared_ptr<U> group, boost::shared_ptr<U::RelChild> child); \ 9 template boost::shared_ptr<U> CGroupFactory::GetGroup<U>(boost::shared_ptr<U> group, const StdString & id); \ 10 template boost::shared_ptr<U::RelChild> CGroupFactory::GetChild<U>(boost::shared_ptr<U> group, const StdString & id); \ 11 template int CGroupFactory::GetGroupNum<U>(boost::shared_ptr<U> group); \ 12 template int CGroupFactory::GetGroupIdNum<U>(boost::shared_ptr<U> group); \ 13 template int CGroupFactory::GetChildNum<U>(boost::shared_ptr<U> group); \ 14 14 template int CGroupFactory::GetChildIdNum<U>(boost::shared_ptr<U> group); \ 15 template bool CGroupFactory::HasGroup<U>( shared_ptr<U> group, const StdString & id); \15 template bool CGroupFactory::HasGroup<U>(boost::shared_ptr<U> group, const StdString & id); \ 16 16 template bool CGroupFactory::HasChild<U>(boost::shared_ptr<U> group, const StdString & id); \ 17 template shared_ptr<U> CGroupFactory::CreateGroup<U>(shared_ptr<U> group, const StdString & id ); \18 template shared_ptr<U::RelChild> CGroupFactory::CreateChild<U>(shared_ptr<U> group, const StdString & id);17 template boost::shared_ptr<U> CGroupFactory::CreateGroup<U>(boost::shared_ptr<U> group, const StdString & id ); \ 18 template boost::shared_ptr<U::RelChild> CGroupFactory::CreateChild<U>(boost::shared_ptr<U> group, const StdString & id); 19 19 20 20 macro(CFieldGroup) -
XIOS/dev/branch_openmp/src/io/inetcdf4.cpp
r1172 r1287 23 23 24 24 mpi = comm && !multifile; 25 MPI_Info m_info = MPI_INFO_NULL _STD;25 MPI_Info m_info = MPI_INFO_NULL.mpi_info; 26 26 27 27 // The file format will be detected automatically by NetCDF, it is safe to always set NC_MPIIO -
XIOS/dev/branch_openmp/src/io/onetcdf4.cpp
r1205 r1287 56 56 CTimer::get("Files : create").resume(); 57 57 if (wmpi) 58 CNetCdfInterface::createPar(filename, mode, *comm, MPI_INFO_NULL _STD, this->ncidp);58 CNetCdfInterface::createPar(filename, mode, *comm, MPI_INFO_NULL.mpi_info, this->ncidp); 59 59 else 60 60 CNetCdfInterface::create(filename, mode, this->ncidp); … … 68 68 CTimer::get("Files : open").resume(); 69 69 if (wmpi) 70 CNetCdfInterface::openPar(filename, mode, *comm, MPI_INFO_NULL _STD, this->ncidp);70 CNetCdfInterface::openPar(filename, mode, *comm, MPI_INFO_NULL.mpi_info, this->ncidp); 71 71 else 72 72 CNetCdfInterface::open(filename, mode, this->ncidp); -
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 -
XIOS/dev/branch_openmp/src/object_factory_decl.cpp
r976 r1287 5 5 { 6 6 #define macro(U) \ 7 template shared_ptr<U> CObjectFactory::GetObject<U>(const StdString& id); \8 template shared_ptr<U> CObjectFactory::GetObject<U>(const StdString& context,const StdString& id); \9 template shared_ptr<U> CObjectFactory::GetObject<U>(const U* const object); \7 template boost::shared_ptr<U> CObjectFactory::GetObject<U>(const StdString& id); \ 8 template boost::shared_ptr<U> CObjectFactory::GetObject<U>(const StdString& context,const StdString& id); \ 9 template boost::shared_ptr<U> CObjectFactory::GetObject<U>(const U* const object); \ 10 10 template int CObjectFactory::GetObjectNum<U>(void); \ 11 11 template int CObjectFactory::GetObjectIdNum<U>(void); \ 12 template const std::vector< shared_ptr<U> >& CObjectFactory::GetObjectVector<U>(const StdString& context ); \12 template const std::vector<boost::shared_ptr<U> >& CObjectFactory::GetObjectVector<U>(const StdString& context ); \ 13 13 template bool CObjectFactory::HasObject<U>(const StdString& id); \ 14 14 template bool CObjectFactory::HasObject<U>(const StdString& context,const StdString& id); \ -
XIOS/dev/branch_openmp/src/object_template.hpp
r1134 r1287 77 77 static T* get(const string& contextId, const string& id) ; 78 78 T* get(void) ; 79 shared_ptr<T> getShared(void) ;80 static shared_ptr<T> getShared(const T* ptr) ;79 boost::shared_ptr<T> getShared(void) ; 80 static boost::shared_ptr<T> getShared(const T* ptr) ; 81 81 82 82 static T* create(const string& id=string("")) ; -
XIOS/dev/branch_openmp/src/object_template_impl.hpp
r1134 r1287 321 321 322 322 template <typename T> 323 shared_ptr<T> CObjectTemplate<T>::getShared(const T* ptr)323 boost::shared_ptr<T> CObjectTemplate<T>::getShared(const T* ptr) 324 324 { 325 325 return CObjectFactory::GetObject<T>(ptr); … … 327 327 328 328 template <typename T> 329 shared_ptr<T> CObjectTemplate<T>::getShared(void)329 boost::shared_ptr<T> CObjectTemplate<T>::getShared(void) 330 330 { 331 331 return CObjectFactory::GetObject<T>((T*)this); … … 335 335 const vector<T*> CObjectTemplate<T>::getAll() 336 336 { 337 const vector< shared_ptr<T> >& shared_vect= CObjectFactory::GetObjectVector<T>();337 const vector< boost::shared_ptr<T> >& shared_vect= CObjectFactory::GetObjectVector<T>(); 338 338 vector<T*> vect; 339 339 340 typename vector< shared_ptr<T> >::const_iterator it;340 typename vector<boost::shared_ptr<T> >::const_iterator it; 341 341 for(it=shared_vect.begin();it!=shared_vect.end();++it) vect.push_back(it->get()); 342 342 return vect; … … 346 346 const vector<T*> CObjectTemplate<T>::getAll(const string & id) 347 347 { 348 const vector< shared_ptr<T> >& shared_vect= CObjectFactory::GetObjectVector<T>(id);348 const vector< boost::shared_ptr<T> >& shared_vect= CObjectFactory::GetObjectVector<T>(id); 349 349 vector<T*> vect; 350 350 351 typename vector< shared_ptr<T> >::const_iterator it;351 typename vector<boost::shared_ptr<T> >::const_iterator it; 352 352 for(it=shared_vect.begin();it!=shared_vect.end();++it) vect.push_back(it->get()); 353 353 return vect;
Note: See TracChangeset
for help on using the changeset viewer.