Loading...
Searching...
No Matches
netcdf_par.h
Go to the documentation of this file.
/*
* In order to use any of the netcdf_XXX.h files, it is necessary
* to include netcdf.h followed by any netcdf_XXX.h files.
* Various things (like EXTERNL) are defined in netcdf.h
* to make them available for use by the netcdf_XXX.h files.
*/
#ifndef NETCDF_PAR_H
#define NETCDF_PAR_H 1
#include <mpi.h>
#define NC_INDEPENDENT 0
#define NC_COLLECTIVE 1
#if defined(__cplusplus)
extern "C" {
#endif
/* Create a file and enable parallel I/O. */
EXTERNL int
nc_create_par(const char *path, int cmode, MPI_Comm comm, MPI_Info info,
int *ncidp);
/* Open a file and enable parallel I/O. */
EXTERNL int
nc_open_par(const char *path, int mode, MPI_Comm comm, MPI_Info info,
int *ncidp);
/* Change a variable from independent (the default) to collective
* access. */
EXTERNL int
nc_var_par_access(int ncid, int varid, int par_access);
EXTERNL int
nc_create_par_fortran(const char *path, int cmode, int comm,
int info, int *ncidp);
EXTERNL int
nc_open_par_fortran(const char *path, int mode, int comm,
int info, int *ncidp);
#if defined(__cplusplus)
}
#endif
#endif /* NETCDF_PAR_H */
nc_open_par
EXTERNL 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.
Definition dparallel.c:208
nc_create_par
EXTERNL 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.
Definition dparallel.c:100
nc_var_par_access
EXTERNL 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...
Definition dparallel.c:381
nc_open_par_fortran
EXTERNL 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.
Definition dparallel.c:261
nc_create_par_fortran
EXTERNL 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.
Definition dparallel.c:438
EXTERNL
#define EXTERNL
Needed for DLL build.
Definition netcdf.h:571