source: XIOS/trunk/src/output/netcdf_version.hpp @ 489

Last change on this file since 489 was 379, checked in by ymipsl, 12 years ago
  • zoom can be output in single file without need to patch the netcdf library
  • sequential version of netcdf4 are now managed. Can be used to output in multiple_file mode

YM

File size: 577 bytes
Line 
1#ifndef __XIOS_NETCDF_VERSION_HPP__
2#define __XIOS_NETCDF_VERSION_HPP__
3
4#if defined(NC_DISKLESS) && defined (NC_MMAP)
5
6#  define NETCDF_VERSION 4211
7
8#elif defined(NC_ETRANSLATION)
9
10# define NETCDF_VERSION 4130
11
12#elif defined(NC_EURL) && defined(NC_ECONSTRAINT)
13
14#  define NETCDF_VERSION 4120
15
16#elif defined (NC_PNETCDF)
17
18#  define NETCDF_VERSION 4110
19
20#elif defined(NC_CHUNKED) && defined(NC_CONTIGUOUS)
21
22# define NETCDF_VERSION 4010
23
24#elif defined(NC_NETCDF4)
25
26# define NETCDF_VERSION 4000
27
28#else
29
30#  error "netcdf version prior 4.0 incompatible with XIOS"
31 
32#endif
33
34#endif
Note: See TracBrowser for help on using the repository browser.