9 #include "ncdispatch.h"
101 MPI_Info info,
int *ncidp)
131 return NC_create(path, cmode, 0, 0, NULL, 1, &data, ncidp);
209 MPI_Info info,
int *ncidp)
219 NC_MPI_INFO mpi_data;
221 mpi_data.comm = comm;
222 mpi_data.info = info;
224 return NC_open(path, omode, 0, NULL, 1, &mpi_data, ncidp);
262 int info,
int *ncidp)
277 #ifdef HAVE_MPI_COMM_F2C
278 comm_c = MPI_Comm_f2c(comm);
280 comm_c = (MPI_Comm)comm;
282 #ifdef HAVE_MPI_INFO_F2C
283 info_c = MPI_Info_f2c(info);
285 info_c = (MPI_Info)info;
288 return nc_open_par(path, omode, comm_c, info_c, ncidp);
386 NC_UNUSED(par_access);
392 if ((stat = NC_check_id(ncid, &ncp)))
395 return ncp->dispatch->var_par_access(ncid,varid,par_access);
439 int info,
int *ncidp)
454 #ifdef HAVE_MPI_COMM_F2C
455 comm_c = MPI_Comm_f2c(comm);
457 comm_c = (MPI_Comm)comm;
459 #ifdef HAVE_MPI_INFO_F2C
460 info_c = MPI_Info_f2c(info);
462 info_c = (MPI_Info)info;
int nc_open_par(const char *path, int omode, MPI_Comm comm, MPI_Info info, int *ncidp)
Open an existing netCDF file for parallel I/O.
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_var_par_access(int ncid, int varid, int par_access)
This function will change the parallel access of a variable from independent to collective and vice v...
int nc_open_par_fortran(const char *path, int omode, 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.
#define NC_NETCDF4
Use netCDF-4/HDF5 format.
#define NC_INMEMORY
Read from memory.
#define NC_DISKLESS
Use diskless file.
#define NC_EINVAL
Invalid Argument.
#define NC_NOERR
No Error.
#define NC_ENOPAR
Parallel operation on file opened for non-parallel access.
#define NC_ENOTBUILT
Attempt to use feature that was not turned on when netCDF was built.