cgnstypes.h
Go to the documentation of this file.
1 /* ------------------------------------------------------------------------- *
2  * CGNS - CFD General Notation System (http://www.cgns.org) *
3  * CGNS/MLL - Mid-Level Library header file *
4  * Please see cgnsconfig.h file for this local installation configuration *
5  * ------------------------------------------------------------------------- */
6 
7 /* ------------------------------------------------------------------------- *
8 
9  This software is provided 'as-is', without any express or implied warranty.
10  In no event will the authors be held liable for any damages arising from
11  the use of this software.
12 
13  Permission is granted to anyone to use this software for any purpose,
14  including commercial applications, and to alter it and redistribute it
15  freely, subject to the following restrictions:
16 
17  1. The origin of this software must not be misrepresented; you must not
18  claim that you wrote the original software. If you use this software
19  in a product, an acknowledgment in the product documentation would be
20  appreciated but is not required.
21 
22  2. Altered source versions must be plainly marked as such, and must not
23  be misrepresented as being the original software.
24 
25  3. This notice may not be removed or altered from any source distribution.
26 
27  * ------------------------------------------------------------------------- */
28 
29 #ifndef CGNSTYPES_H
30 #define CGNSTYPES_H
31 
32 #include "vtk_cgns_mangle.h"
33 
34 #define CG_BUILD_HDF5 1
35 #define CG_BUILD_LEGACY 0
36 #define CG_BUILD_64BIT 1
37 #define CG_BUILD_SCOPE 1
38 #define CG_BUILD_BASESCOPE 0
39 #define CG_BUILD_PARALLEL 0
40 #define CG_BUILD_COMPLEX_C99_EXT 0
41 
42 #define CG_MAX_INT32 0x7FFFFFFF
43 #ifdef _WIN32
44 # define CG_LONG_T __int64
45 #else
46 # define CG_LONG_T long
47 #endif
48 
49 #if CG_BUILD_HDF5
50 
51 /* ----------------------------------------------------------------
52  * convert between HDF5 and ADF ids
53  * ---------------------------------------------------------------- */
54 
55 #define to_ADF_ID(ID,ADF_ID) memcpy(&(ADF_ID),&(ID),sizeof(hid_t))
56 #define to_HDF_ID(ADF_ID,ID) memcpy(&(ID),&(ADF_ID),sizeof(hid_t))
57 
58 /* Determine if hdf5 has multi-dataset read/write capabilities */
59 
60 #define HDF5_HAVE_MULTI_DATASETS 0
61 
62 /* Determine if hdf5 has collective metadata APIs */
63 
64 #define HDF5_HAVE_COLL_METADATA 0
65 
66 /* Determine if hdf5 H5Pset_file_space_strategy */
67 
68 #define HDF5_HAVE_FILE_SPACE_STRATEGY 0
69 
70 #endif
71 
72 #define CG_HAVE_STAT64_STRUCT 0
73 
74 #if CG_BUILD_LEGACY
75 # define CG_SIZEOF_SIZE 32
76 # define CG_SIZE_DATATYPE "I4"
77 # define cgerr_t int
78 # define cgint_t int
79 # define cgsize_t int
80 # define cgid_t double
81 #else
82 # if CG_BUILD_64BIT
83 # define CG_SIZEOF_SIZE 64
84 # define CG_SIZE_DATATYPE "I8"
86 # else
87 # define CG_SIZEOF_SIZE 32
88 # define CG_SIZE_DATATYPE "I4"
89  typedef int cgsize_t;
90 # endif
91  typedef int cgerr_t;
92  typedef int cgint_t;
93  typedef double cgid_t;
94 #endif
95 
96 /* Define an int type that is interoperabable with Fortran's INTEGER */
97 #define FORTRAN_DEFAULT_INTEGER_C_INT64_T 0
98 #if FORTRAN_DEFAULT_INTEGER_C_INT64_T == 1
99  typedef CG_LONG_T cgint_f;
100 #else
101  typedef int cgint_f;
102 #endif
103 
104 
106 typedef unsigned CG_LONG_T cgulong_t;
107 
108 #endif
unsigned CG_LONG_T cgulong_t
Definition: cgnstypes.h:106
double cgid_t
Definition: cgnstypes.h:93
#define CG_LONG_T
Definition: cgnstypes.h:46
CG_LONG_T cgsize_t
Definition: cgnstypes.h:85
int cgint_f
Definition: cgnstypes.h:101
CG_LONG_T cglong_t
Definition: cgnstypes.h:105
int cgint_t
Definition: cgnstypes.h:92
int cgerr_t
Definition: cgnstypes.h:91