source: XIOS/trunk/extern/src_netcdf4/netcdf_par.h @ 409

Last change on this file since 409 was 409, checked in by ymipsl, 11 years ago

Add improved nectdf internal library src

YM

  • Property svn:eol-style set to native
File size: 1.2 KB
Line 
1/*
2 * Copyright 2010 University Corporation for Atmospheric
3 * Research/Unidata. See COPYRIGHT file for more info.
4 *
5 * This header file is for the parallel I/O functions of netCDF.
6 *
7 */
8/* "$Id: netcdf_par.h,v 1.1 2010/06/01 15:46:49 ed Exp $" */
9
10#ifndef NETCDF_PAR_H
11#define NETCDF_PAR_H 1
12
13#include <mpi.h>
14#include <netcdf.h>
15
16#if defined(__cplusplus)
17extern "C" {
18#endif
19
20/* Use these with nc_var_par_access(). */
21#define NC_INDEPENDENT 0
22#define NC_COLLECTIVE 1
23
24/* Create a file and enable parallel I/O. */
25extern int
26nc_create_par(const char *path, int cmode, MPI_Comm comm, MPI_Info info,
27              int *ncidp);
28
29/* Open a file and enable parallel I/O. */
30extern int
31nc_open_par(const char *path, int mode, MPI_Comm comm, MPI_Info info,
32            int *ncidp);
33
34/* Change a variable from independent (the default) to collective
35 * access. */
36extern int
37nc_var_par_access(int ncid, int varid, int par_access);
38
39extern int
40nc_create_par_fortran(const char *path, int cmode, int comm, 
41                      int info, int *ncidp);
42extern int
43nc_open_par_fortran(const char *path, int mode, int comm, 
44                    int info, int *ncidp);
45
46#if defined(__cplusplus)
47}
48#endif
49
50#endif /* NETCDF_PAR_H */
Note: See TracBrowser for help on using the repository browser.