NetCDF  4.4.1.1
netcdf_par.h
Go to the documentation of this file.
1 
11 /* "$Id: netcdf_par.h,v 1.1 2010/06/01 15:46:49 ed Exp $" */
12 
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 
22 /* Use these with nc_var_par_access(). */
23 #define NC_INDEPENDENT 0
24 #define NC_COLLECTIVE 1
25 
26 /* Create a file and enable parallel I/O. */
27 extern int
28 nc_create_par(const char *path, int cmode, MPI_Comm comm, MPI_Info info,
29  int *ncidp);
30 
31 /* Open a file and enable parallel I/O. */
32 extern int
33 nc_open_par(const char *path, int mode, MPI_Comm comm, MPI_Info info,
34  int *ncidp);
35 
36 /* Change a variable from independent (the default) to collective
37  * access. */
38 extern int
39 nc_var_par_access(int ncid, int varid, int par_access);
40 
41 extern int
42 nc_create_par_fortran(const char *path, int cmode, int comm,
43  int info, int *ncidp);
44 extern int
45 nc_open_par_fortran(const char *path, int mode, int comm,
46  int info, int *ncidp);
47 
48 #if defined(__cplusplus)
49 }
50 #endif
51 
52 #endif /* NETCDF_PAR_H */
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.
Definition: dparallel.c:42
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.
Definition: dparallel.c:16
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.
Definition: dparallel.c:72

Return to the Main Unidata NetCDF page.
Generated on Sat Sep 22 2018 10:25:33 for NetCDF. NetCDF is a Unidata library.