-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathprecision.h
More file actions
53 lines (42 loc) · 1.17 KB
/
Copy pathprecision.h
File metadata and controls
53 lines (42 loc) · 1.17 KB
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
//
// precision related, if changed, rerun 'make proto' for the auto_proto.h file
//
#ifndef MY_PRECISION_HAS_BEEN_SOURCED
#ifndef SINGLE_PRECISION // double precision is the default
#define COMP_PRECISION double
#define EXT_FTRN_PREC double
#define FLT_FORMAT "%lf"
#define TWO_FLT_FORMAT "%lf %lf"
#define THREE_FLT_FORMAT "%lf %lf %lf"
#define FOUR_FLT_FORMAT "%lf %lf %lf %lf"
#define EPS_PREC 8.0e-15
// eispack symmetric real double precision eigensystem routine
#define SYMREAL_ES_ROUTINE rs_
#define REAL_ES_ROUTINE rg_
#else // single precision
#define COMP_PRECISION float
#define EXT_FTRN_PREC float
#define FLT_FORMAT "%f"
#define TWO_FLT_FORMAT "%f %f"
#define THREE_FLT_FORMAT "%f %f %f"
#define FOUR_FLT_FORMAT "%f %f %f %f"
#define EPS_PREC 7.0e-8
// eispack symmetric real single precision eigensystem routine
#define SYMREAL_ES_ROUTINE s_rs_
#define REAL_ES_ROUTINE s_rg_
#endif
// needed for compatibility
#ifndef EPS_COMP_PREC
#define EPS_COMP_PREC EPS_PREC
#endif
#define my_boolean unsigned short
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
/* velocity grid precition */
#define VPREC float
#define MY_PRECISION_HAS_BEEN_SOURCED
#endif