10 #include "ncdispatch.h"
89 MPI_Info info,
int *ncidp)
104 return NC_create(path, cmode, 0, 0, NULL, 1, &data, ncidp);
179 MPI_Info info,
int *ncidp)
184 NC_MPI_INFO mpi_data;
195 mpi_data.comm = comm;
196 mpi_data.info = info;
198 return NC_open(path, mode, 0, NULL, 1, &mpi_data, ncidp);
238 int info,
int *ncidp)
248 #ifdef HAVE_MPI_COMM_F2C
249 comm_c = MPI_Comm_f2c(comm);
250 info_c = MPI_Info_f2c(info);
252 comm_c = (MPI_Comm)comm;
253 info_c = (MPI_Info)info;
256 return nc_open_par(path, mode, comm_c, info_c, ncidp);
328 if ((stat = NC_check_id(ncid, &ncp)))
334 return ncp->dispatch->var_par_access(ncid,varid,par_access);
374 int info,
int *ncidp)
384 #ifdef HAVE_MPI_COMM_F2C
385 comm_c = MPI_Comm_f2c(comm);
386 info_c = MPI_Info_f2c(info);
388 comm_c = (MPI_Comm)comm;
389 info_c = (MPI_Info)info;
#define NC_PNETCDF
Use parallel-netcdf library; alias for NC_MPIIO.
#define NC_MPIIO
Turn on MPI I/O.
int nc_open_par(const char *path, int mode, MPI_Comm comm, MPI_Info info, int *ncidp)
Open an existing netCDF file for parallel I/O.
#define NC_EINVAL
Invalid Argument.
int nc_create_par(const char *path, int cmode, MPI_Comm comm, MPI_Info info, int *ncidp)
Create a netCDF file for parallel I/O.
int nc_open_par_fortran(const char *path, int mode, int comm, int info, int *ncidp)
This is the same as nc_open_par(), but accepts the MPI comm/info as integers.
int nc_create_par_fortran(const char *path, int cmode, int comm, int info, int *ncidp)
Create a netCDF file for parallel access from the Fortran API.
int nc_var_par_access(int ncid, int varid, int par_access)
This function will change the parallel access of a variable from independent to collective.
#define NC_ENOPAR
Parallel operation on file opened for non-parallel access.
#define NC_NOERR
No Error.
#define NC_MPIPOSIX
Turn on MPI POSIX I/O.