source: codes/icosagcm/branches/SATURN_DYNAMICO/NETCDF4/include/netcdf_par.h

Last change on this file was 308, checked in by ymipsl, 10 years ago

Add compiled NETCDF4 library for occigen

YM

  • Property svn:eol-style set to native
File size: 1.1 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
15#if defined(__cplusplus)
16extern "C" {
17#endif
18
19/* Use these with nc_var_par_access(). */
20#define NC_INDEPENDENT 0
21#define NC_COLLECTIVE 1
22
23/* Create a file and enable parallel I/O. */
24extern int
25nc_create_par(const char *path, int cmode, MPI_Comm comm, MPI_Info info,
26              int *ncidp);
27
28/* Open a file and enable parallel I/O. */
29extern int
30nc_open_par(const char *path, int mode, MPI_Comm comm, MPI_Info info,
31            int *ncidp);
32
33/* Change a variable from independent (the default) to collective
34 * access. */
35extern int
36nc_var_par_access(int ncid, int varid, int par_access);
37
38extern int
39nc_create_par_fortran(const char *path, int cmode, int comm, 
40                      int info, int *ncidp);
41extern int
42nc_open_par_fortran(const char *path, int mode, int comm, 
43                    int info, int *ncidp);
44
45#if defined(__cplusplus)
46}
47#endif
48
49#endif /* NETCDF_PAR_H */
Note: See TracBrowser for help on using the repository browser.