Changeset 1138 for XIOS/dev/branch_yushan_merged/src/io
- Timestamp:
- 05/18/17 17:40:03 (7 years ago)
- Location:
- XIOS/dev/branch_yushan_merged/src/io
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_yushan_merged/src/io/inetcdf4.cpp
r1134 r1138 4 4 5 5 #include <boost/algorithm/string.hpp> 6 // mpi_std.hpp 7 #ifdef _usingEP 8 #include "ep_declaration.hpp" 9 #endif 6 10 7 11 namespace xios … … 18 22 } 19 23 mpi = comm && !multifile; 20 MPI_Info m_info ;24 MPI_Info m_info = MPI_INFO_NULL_STD; 21 25 22 26 // The file format will be detected automatically by NetCDF, it is safe to always set NC_MPIIO -
XIOS/dev/branch_yushan_merged/src/io/inetcdf4.hpp
r1134 r1138 13 13 #define UNLIMITED_DIM (size_t)(-1) 14 14 #endif // UNLIMITED_DIM 15 15 16 16 17 namespace xios -
XIOS/dev/branch_yushan_merged/src/io/inetcdf4_decl.cpp
r782 r1138 1 1 #include "inetcdf4_impl.hpp" 2 // mpi_std.hpp 2 3 3 4 namespace xios -
XIOS/dev/branch_yushan_merged/src/io/inetcdf4_impl.hpp
r782 r1138 4 4 #include "inetcdf4.hpp" 5 5 #include "netCdfInterface.hpp" 6 // mpi_std.hpp 6 7 7 8 namespace xios -
XIOS/dev/branch_yushan_merged/src/io/nc4_data_input.cpp
r1064 r1138 8 8 #include "scalar.hpp" 9 9 10 // mpi.hpp 11 10 12 namespace xios 11 13 { 12 CNc4DataInput::CNc4DataInput(const StdString& filename, MPI_Comm comm_file, bool multifile, bool isCollective /*= true*/, const StdString& timeCounterName /*= "time_counter"*/)14 CNc4DataInput::CNc4DataInput(const StdString& filename, ::MPI_Comm comm_file, bool multifile, bool isCollective /*= true*/, const StdString& timeCounterName /*= "time_counter"*/) 13 15 : SuperClass() 14 16 , SuperClassWriter(filename, &comm_file, multifile, timeCounterName) -
XIOS/dev/branch_yushan_merged/src/io/nc4_data_input.hpp
r967 r1138 6 6 #include "data_input.hpp" 7 7 #include "inetcdf4.hpp" 8 // mpi_std.hpp 8 9 9 10 namespace xios -
XIOS/dev/branch_yushan_merged/src/io/nc4_data_output.cpp
r1134 r1138 12 12 #include "exception.hpp" 13 13 #include "uuid.hpp" 14 // mpi.hpp 14 15 15 16 namespace xios … … 28 29 CNc4DataOutput::CNc4DataOutput 29 30 (CFile* file, const StdString & filename, bool exist, bool useClassicFormat, bool useCFConvention, 30 ep_lib::MPI_Comm comm_file, bool multifile, bool isCollective, const StdString& timeCounterName)31 ::MPI_Comm comm_file, bool multifile, bool isCollective, const StdString& timeCounterName) 31 32 : SuperClass() 32 33 , SuperClassWriter(filename, exist, useClassicFormat, useCFConvention, &comm_file, multifile, timeCounterName) … … 463 464 StdString domainName = domain->name; 464 465 domain->assignMesh(domainName, domain->nvertex); 465 domain->mesh->createMeshEpsilon(static_cast< MPI_Comm>(server->intraComm.mpi_comm), domain->lonvalue_srv, domain->latvalue_srv, domain->bounds_lon_srv, domain->bounds_lat_srv);466 domain->mesh->createMeshEpsilon(static_cast< ::MPI_Comm >(server->intraComm.mpi_comm), domain->lonvalue_srv, domain->latvalue_srv, domain->bounds_lon_srv, domain->bounds_lat_srv); 466 467 467 468 StdString node_x = domainName + "_node_x"; -
XIOS/dev/branch_yushan_merged/src/io/nc4_data_output.hpp
r1134 r1138 6 6 #include "onetcdf4.hpp" 7 7 #include "data_output.hpp" 8 // mpi_std.hpp 8 9 9 10 namespace xios … … 26 27 CNc4DataOutput 27 28 (CFile* file, const StdString & filename, bool exist, bool useClassicFormat, 28 bool useCFConvention, 29 ep_lib::MPI_Comm comm_file, bool multifile, bool isCollective = true, 30 const StdString& timeCounterName = "time_counter"); 29 bool useCFConvention, MPI_Comm comm_file, bool multifile, 30 bool isCollective = true, const StdString& timeCounterName = "time_counter"); 31 31 32 32 CNc4DataOutput(const CNc4DataOutput & dataoutput); // Not implemented. … … 116 116 117 117 /// Propriétés privées /// 118 ep_lib::MPI_Comm comm_file;118 MPI_Comm comm_file; 119 119 const StdString filename; 120 120 std::map<Time, StdSize> timeToRecordCache; -
XIOS/dev/branch_yushan_merged/src/io/netCdfInterface.cpp
r1050 r1138 10 10 #include "netCdfInterface.hpp" 11 11 #include "netCdfException.hpp" 12 // mpi_std.hpp 12 13 13 14 namespace xios -
XIOS/dev/branch_yushan_merged/src/io/netCdfInterface_decl.cpp
r1050 r1138 9 9 10 10 #include "netCdfInterface_impl.hpp" 11 // mpi_std.hpp 11 12 12 13 namespace xios -
XIOS/dev/branch_yushan_merged/src/io/netCdfInterface_impl.hpp
r833 r1138 13 13 #include "netCdfInterface.hpp" 14 14 #include "netCdfException.hpp" 15 // mpi_std.hpp 15 16 16 17 namespace xios -
XIOS/dev/branch_yushan_merged/src/io/netCdf_cf_constant.hpp
r782 r1138 4 4 #include "inetcdf4.hpp" 5 5 #include "netCdfInterface.hpp" 6 7 // mpi_std.hpp 6 8 7 9 namespace xios -
XIOS/dev/branch_yushan_merged/src/io/netcdf.hpp
r1134 r1138 30 30 namespace xios 31 31 { 32 inline int nc_create_par(const char *path, int cmode, ep_lib::MPI_Comm comm, MPI_Info info,int *ncidp)32 inline int nc_create_par(const char *path, int cmode, MPI_Comm comm, MPI_Info info,int *ncidp) 33 33 { 34 34 #if defined(USING_NETCDF_PAR) 35 return ::nc_create_par(path, cmode, static_cast<MPI_Comm>(comm.mpi_comm), info, ncidp) ;35 return ::nc_create_par(path, cmode, comm, info, ncidp) ; 36 36 #else 37 37 ERROR("int nc_create_par(const char *path, int cmode, MPI_Comm comm, MPI_Info info,int *ncidp)", … … 41 41 } 42 42 43 inline int nc_open_par(const char *path, int mode, ep_lib::MPI_Comm comm, MPI_Info info,int *ncidp)43 inline int nc_open_par(const char *path, int mode, MPI_Comm comm, MPI_Info info,int *ncidp) 44 44 { 45 45 #if defined(USING_NETCDF_PAR) 46 return ::nc_open_par(path, mode, static_cast<MPI_Comm>(comm.mpi_comm), info, ncidp) ;46 return ::nc_open_par(path, mode, comm, info, ncidp) ; 47 47 #else 48 48 ERROR("int nc_open_par(const char *path, int mode, MPI_Comm comm, MPI_Info info,int *ncidp)", -
XIOS/dev/branch_yushan_merged/src/io/onetcdf4.cpp
r1134 r1138 6 6 #include "netCdfInterface.hpp" 7 7 #include "netCdfException.hpp" 8 // mpi_std.hpp 8 9 9 10 namespace xios … … 12 13 13 14 CONetCDF4::CONetCDF4(const StdString& filename, bool append, bool useClassicFormat, bool useCFConvention, 14 const ep_lib::MPI_Comm* comm, bool multifile, const StdString& timeCounterName)15 const MPI_Comm* comm, bool multifile, const StdString& timeCounterName) 15 16 : path() 16 17 , wmpi(false) … … 30 31 31 32 void CONetCDF4::initialize(const StdString& filename, bool append, bool useClassicFormat, bool useCFConvention, 32 const ep_lib::MPI_Comm* comm, bool multifile, const StdString& timeCounterName)33 const MPI_Comm* comm, bool multifile, const StdString& timeCounterName) 33 34 { 34 35 this->useClassicFormat = useClassicFormat; … … 54 55 { 55 56 if (wmpi) 56 CNetCdfInterface::createPar(filename, mode, static_cast<MPI_Comm>(comm->mpi_comm), MPI_INFO_NULL_STD, this->ncidp); 57 //CNetCdfInterface::createPar(filename, mode, static_cast<MPI_Comm>(comm->mpi_comm), MPI_INFO_NULL_STD, this->ncidp); 58 CNetCdfInterface::createPar(filename, mode, *comm, MPI_INFO_NULL_STD, this->ncidp); 57 59 else 58 60 CNetCdfInterface::create(filename, mode, this->ncidp); … … 64 66 mode |= NC_WRITE; 65 67 if (wmpi) 66 CNetCdfInterface::openPar(filename, mode, static_cast<MPI_Comm>(comm->mpi_comm), MPI_INFO_NULL_STD, this->ncidp); 68 //CNetCdfInterface::openPar(filename, mode, static_cast<MPI_Comm>(comm->mpi_comm), MPI_INFO_NULL_STD, this->ncidp); 69 CNetCdfInterface::openPar(filename, mode, *comm, MPI_INFO_NULL_STD, this->ncidp); 67 70 else 68 71 CNetCdfInterface::open(filename, mode, this->ncidp); -
XIOS/dev/branch_yushan_merged/src/io/onetcdf4.hpp
r1134 r1138 14 14 #endif //UNLIMITED_DIM 15 15 16 // mpi_std.hpp 17 16 18 namespace xios 17 19 { … … 28 30 CONetCDF4(const StdString& filename, bool append, bool useClassicFormat = false, 29 31 bool useCFConvention = true, 30 const ep_lib::MPI_Comm* comm = NULL, bool multifile = true,32 const MPI_Comm* comm = NULL, bool multifile = true, 31 33 const StdString& timeCounterName = "time_counter"); 32 34 … … 37 39 /// Initialisation /// 38 40 void initialize(const StdString& filename, bool append, bool useClassicFormat, bool useCFConvention, 39 const ep_lib::MPI_Comm* comm, bool multifile, const StdString& timeCounterName);41 const MPI_Comm* comm, bool multifile, const StdString& timeCounterName); 40 42 void close(void); 41 43 void sync(void); -
XIOS/dev/branch_yushan_merged/src/io/onetcdf4_decl.cpp
r1050 r1138 1 1 #include "onetcdf4_impl.hpp" 2 // mpi_std.hpp 2 3 3 4 namespace xios -
XIOS/dev/branch_yushan_merged/src/io/onetcdf4_impl.hpp
r1050 r1138 4 4 #include "onetcdf4.hpp" 5 5 #include "netCdfInterface.hpp" 6 7 // mpi_std.hpp 6 8 7 9 namespace xios
Note: See TracChangeset
for help on using the changeset viewer.