NetCDF4 C++ API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
NcConfig.h
Go to the documentation of this file.
1 
12 #ifndef INC_netcdf_NcConfig_h
13 #define INC_netcdf_NcConfig_h
14 
15 #ifdef USE_PARALLEL
16 
17  #ifdef NO_PARALLEL
18  #error NO_PARALLEL and USE_PARALLEL are both defined!
19  #endif
20 
21  #include "NcMPI.h"
22  #ifndef MPI_INCLUDED
23  #define MPI_INCLUDED
24  #endif
25 
26  #include "netcdf.h"
27  #ifdef HAS_NETCDF_PAR_H
28  // assume NetCDF 4.2
29  #include "netcdf_par.h"
30  #else
31  // for netcdf 4.1
32  #endif
33 
34 #else
35 
36  // not parallel
37  #include "netcdf.h"
38 
39 #endif
40 
41 // following not in netcdf 4.1
42 #ifndef NC_MAX_ATOMIC_TYPE
43  #define NC_MAX_ATOMIC_TYPE NC_STRING
44 #endif
45 
46 
47 #endif // INC_netcdf_NcConfig_h