CDT++
Causal Dynamical Triangulations in C++
Loading...
Searching...
No Matches
Settings.hpp
Go to the documentation of this file.
1/*******************************************************************************
2 Causal Dynamical Triangulations in C++ using CGAL
3
4 Copyright © 2020 Adam Getchell
5 ******************************************************************************/
6
11
12#ifndef INCLUDE_SETTINGS_HPP_
13#define INCLUDE_SETTINGS_HPP_
14
15#include <CGAL/GMP/Gmpzf_type.h>
16
17#include <cstdint>
18
21using Gmpzf = CGAL::Gmpzf;
22
27
28#if __linux
29using Int_precision = int;
30#else
31using Int_precision = std::int_fast32_t;
32#endif
33
34#ifdef _WIN32
35#define __PRETTY_FUNCTION__ __FUNCSIG__
36#endif
37
38// #define CGAL_LINKED_WITH_TBB
39
42
44static inline Int_precision constexpr PRECISION = 256;
45
47static inline double constexpr INITIAL_RADIUS = 1.0;
48static inline double constexpr FOLIATION_SPACING = 1.0;
49
51static inline double constexpr TOLERANCE = 0.01;
52
54[[maybe_unused]] static inline Int_precision constexpr GV_BOUNDING_BOX_SIZE =
55 100;
56
58static inline int constexpr ALIGNMENT_64_BIT = 64;
59
61static inline int constexpr ALIGNMENT_32_BIT = 32;
62
63#endif // INCLUDE_SETTINGS_HPP_
static double constexpr TOLERANCE
Sets epsilon values for floating point comparisons.
Definition: Settings.hpp:51
static int constexpr ALIGNMENT_32_BIT
Except when we only need 32 bits.
Definition: Settings.hpp:61
std::int_fast32_t Int_precision
Definition: Settings.hpp:31
static double constexpr INITIAL_RADIUS
Default foliated triangulation spacings.
Definition: Settings.hpp:47
static int constexpr ALIGNMENT_64_BIT
Aligns data for ease of access on 64-bit CPUs at the expense of padding.
Definition: Settings.hpp:58
static Int_precision constexpr GV_BOUNDING_BOX_SIZE
Depends on INITIAL_RADIUS and RADIAL_FACTOR.
Definition: Settings.hpp:54
static Int_precision constexpr PRECISION
Sets the precision for MPFR.
Definition: Settings.hpp:44