Changeset 1138 for XIOS/dev/branch_yushan_merged/src/io/onetcdf4.cpp
- Timestamp:
- 05/18/17 17:40:03 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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);
Note: See TracChangeset
for help on using the changeset viewer.