/
config.h.in
68 lines (56 loc) · 1.54 KB
/
config.h.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// Copyright (C) 2010, Steffen Knollmann
// Released under the terms of the GNU General Public License version 3.
#ifndef CONFIG_H
#define CONFIG_H
/*--- Code Features (to be adjusted by the configure script) ------------*/
#undef WITH_OPENMP
#undef WITH_MAPPING_SPH
#undef WITH_MAPPING_CIC
#undef ENABLE_FORTRAN_RECORDS
#undef ENABLE_DOUBLE
#undef ENABLE_DEBUG
/*--- Constants (to be set by the configure script) ---------------------*/
#define NDIM __NDIM_VALUE__
#define MAXBASESIZE __MAXBASESIZE_VALUE__
#define SPHKERNELSIZESMALL __SPHKERNELSIZESMALL_VALUE__
#define SPHKERNELSIZEMEDIUM __SPHKERNELSIZEMEDIUM_VALUE__
#define SPHKERNELSIZEBIG __SPHKERNELSIZEBIG_VALUE__
#define SPHKERNEL_SUBSAMPLING __SPHKERNEL_SUBSAMPLING_VALUE__
#undef GRID_UNDEFINED_VALUE
/*--- Consequences of the Code Features (do NOT change) -----------------*/
#ifdef ENABLE_DEBUG
# undef NDEBUG
# define DEBUG
# define XMEM_TRACK_MEM
#else
# define NDEBUG
# undef DEBUG
# undef XMEM_TRACK_MEM
#endif
#if (defined _OPENMP & !defined WITH_OPENMP)
# error Please reconfigure using --with-openmp.
#endif
#ifdef WITH_OPENMP
# ifndef _OPENMP
# undef WITH_OPENMP
# endif
#endif
#ifdef ENABLE_DOUBLE
typedef double fpv_t;
# define FPV_C(a) a
# define SCNfpv "lf"
# define PRIfpv "g"
#else
typedef float fpv_t;
# define FPV_C(a) a ## f
# define SCNfpv "f"
# define PRIfpv "g"
#endif
#if (NDIM == 2)
# define POW_NDIM(a) ((a) * (a))
#elif (NDIM == 3)
# define POW_NDIM(a) ((a) * (a) * (a))
#else
# error NDIM must be 2 or 3
#endif
#endif