9 #include "ncdispatch.h"
17 MPI_Info info,
int *ncidp)
32 return NC_create(path, cmode, 0, 0, NULL, 1, &data, ncidp);
43 MPI_Info info,
int *ncidp)
62 return NC_open(path, mode, 0, NULL, 1, &mpi_data, ncidp);
83 #ifdef HAVE_MPI_COMM_F2C
84 comm_c = MPI_Comm_f2c(comm);
85 info_c = MPI_Info_f2c(info);
87 comm_c = (MPI_Comm)comm;
88 info_c = (MPI_Info)info;
91 return nc_open_par(path, mode, comm_c, info_c, ncidp);
98 nc_var_par_access(
int ncid,
int varid,
int par_access)
104 if ((stat = NC_check_id(ncid, &ncp)))
110 return ncp->dispatch->var_par_access(ncid,varid,par_access);
116 nc_create_par_fortran(
const char *path,
int cmode,
int comm,
117 int info,
int *ncidp)
127 #ifdef HAVE_MPI_COMM_F2C
128 comm_c = MPI_Comm_f2c(comm);
129 info_c = MPI_Info_f2c(info);
131 comm_c = (MPI_Comm)comm;
132 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)
This function opens a file for parallel I/O.
#define NC_EINVAL
Invalid Argument.
int nc_open_par_fortran(const char *path, int mode, int comm, int info, int *ncidp)
Fortran needs to pass MPI comm/info as integers.
#define NC_ENOPAR
Parallel operation on file opened for non-parallel access.
int nc_create_par(const char *path, int cmode, MPI_Comm comm, MPI_Info info, int *ncidp)
This function creates a file for use with parallel I/O.
#define NC_NOERR
No Error.
#define NC_MPIPOSIX
Turn on MPI POSIX I/O.