NetCDF  4.6.3
 All Data Structures Files Functions Variables Typedefs Macros Modules Pages
netcdf_par.h
Go to the documentation of this file.
1 
13 #ifndef NETCDF_PAR_H
14 #define NETCDF_PAR_H 1
15 
16 #include <mpi.h>
17 
18 #if defined(__cplusplus)
19 extern "C" {
20 #endif
21 
23 #define NC_INDEPENDENT 0
24 
25 #define NC_COLLECTIVE 1
26 
27 /* Create a file and enable parallel I/O. */
28  extern int
29  nc_create_par(const char *path, int cmode, MPI_Comm comm, MPI_Info info,
30  int *ncidp);
31 
32 /* Open a file and enable parallel I/O. */
33  extern int
34  nc_open_par(const char *path, int mode, MPI_Comm comm, MPI_Info info,
35  int *ncidp);
36 
37 /* Change a variable from independent (the default) to collective
38  * access. */
39  extern int
40  nc_var_par_access(int ncid, int varid, int par_access);
41 
42  extern int
43  nc_create_par_fortran(const char *path, int cmode, int comm,
44  int info, int *ncidp);
45  extern int
46  nc_open_par_fortran(const char *path, int mode, int comm,
47  int info, int *ncidp);
48 
49 #if defined(__cplusplus)
50 }
51 #endif
52 
53 #endif /* NETCDF_PAR_H */
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:205
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:101
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:420
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:363
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:258

Return to the Main Unidata NetCDF page.
Generated on Sat Apr 6 2019 08:19:00 for NetCDF. NetCDF is a Unidata library.