aboutsummaryrefslogtreecommitdiff
path: root/src/include/config.hh
blob: b5a61bd6128435ebb858d0821c22e3d87b15a8d7 (plain)
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
// config.hh -- compile-time configuration for AHFinderDirect
// $Header$

//
// prerequisites:
//	"cctk.h" or "fake_cctk.h"
//

typedef CCTK_REAL fp;

// Fortran 'integer' type
typedef CCTK_INT integer;

// FIXME: this assumes fp == C 'double'
//	  (CCTK_REAL_PRECISION_{4,8,16} are helpful, but not quite enough)
#undef  FP_IS_FLOAT
#define FP_IS_DOUBLE

#if   defined(FP_IS_FLOAT)
  #define FP_SCANF_FORMAT "%f"
#elif defined(FP_IS_DOUBLE)
  #define FP_SCANF_FORMAT "%lf"
#else
  #error "don't know fp datatype!"
#endif

//
// The angular finite differencing in our multipatch system can be
// either 2nd order or 4th order, configurable here.
//
#ifdef FINITE_DIFF_ORDER
  // someone (probably a Makefile) has already defined this ==> leave it alone
#else
  #define FINITE_DIFF_ORDER	4
#endif

//
// What types of Jacobian matrix storage do we want to compile in
// support for?  N.b. each of these requires linking with the corresponding
// linear-solver library; see ../make.configuration.defn for details.
//
#define HAVE_DENSE_JACOBIAN