Changeset 1638 for XIOS/trunk/src/io/netCdfInterface.cpp
- Timestamp:
- 01/22/19 16:15:03 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/io/netCdfInterface.cpp
r1454 r1638 10 10 #include "netCdfInterface.hpp" 11 11 #include "netCdfException.hpp" 12 12 #include "ep_mpi.hpp" 13 13 namespace xios 14 14 { … … 47 47 \return Status code 48 48 */ 49 int CNetCdfInterface::createPar(const StdString& fileName, int cMode, MPI_Comm comm, MPI_Info info, int& ncId) 50 { 49 int CNetCdfInterface::createPar(const StdString& fileName, int cMode, ep_lib::MPI_Comm comm, ep_lib::MPI_Info info, int& ncId) 50 { 51 #ifdef _usingMPI 51 52 int status = xios::nc_create_par(fileName.c_str(), cMode, comm, info, &ncId); 53 #elif _usingEP 54 int status = xios::nc_create_par(fileName.c_str(), cMode, to_mpi_comm(comm->mpi_comm), to_mpi_info(info), &ncId); 55 #endif 52 56 if (NC_NOERR != status) 53 57 { … … 100 104 \return Status code 101 105 */ 102 int CNetCdfInterface::openPar(const StdString& fileName, int oMode, MPI_Comm comm, MPI_Info info, int& ncId) 103 { 106 int CNetCdfInterface::openPar(const StdString& fileName, int oMode, ep_lib::MPI_Comm comm, ep_lib::MPI_Info info, int& ncId) 107 { 108 #ifdef _usingMPI 104 109 int status = xios::nc_open_par(fileName.c_str(), oMode, comm, info, &ncId); 110 #elif _usingEP 111 int status = xios::nc_open_par(fileName.c_str(), oMode, to_mpi_comm(comm->mpi_comm), to_mpi_info(info), &ncId); 112 #endif 105 113 if (NC_NOERR != status) 106 114 {
Note: See TracChangeset
for help on using the changeset viewer.