Last change
on this file since 2326 was
409,
checked in by ymipsl, 12 years ago
|
Add improved nectdf internal library src
YM
|
-
Property svn:eol-style set to
native
|
File size:
1.2 KB
|
Rev | Line | |
---|
[409] | 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) |
---|
| 17 | extern "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. */ |
---|
| 25 | extern int |
---|
| 26 | nc_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. */ |
---|
| 30 | extern int |
---|
| 31 | nc_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. */ |
---|
| 36 | extern int |
---|
| 37 | nc_var_par_access(int ncid, int varid, int par_access); |
---|
| 38 | |
---|
| 39 | extern int |
---|
| 40 | nc_create_par_fortran(const char *path, int cmode, int comm, |
---|
| 41 | int info, int *ncidp); |
---|
| 42 | extern int |
---|
| 43 | nc_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.