CDT++ 1.0.0
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
19namespace cdt
20{
23 using Gmpzf = CGAL::Gmpzf;
24
29
30 using Int_precision = std::int32_t;
31
32#ifdef _WIN32
34#define CDT_PRETTY_FUNCTION __FUNCSIG__
35#else
37#define CDT_PRETTY_FUNCTION __PRETTY_FUNCTION__
38#endif
39
42
44 inline constexpr Int_precision PRECISION = 256;
45
47 inline constexpr double INITIAL_RADIUS = 1.0;
49 inline constexpr double FOLIATION_SPACING = 1.0;
50
52 inline constexpr double TOLERANCE = 0.01;
53
55 [[maybe_unused]] inline constexpr Int_precision GV_BOUNDING_BOX_SIZE = 100;
56
58 inline constexpr int ALIGNMENT_64_BIT = 64;
59
61 inline constexpr int ALIGNMENT_32_BIT = 32;
62} // namespace cdt
63
64#endif // INCLUDE_SETTINGS_HPP_
clang-15 does not support std::format
constexpr double INITIAL_RADIUS
Default initial radius for generated foliated triangulations.
Definition Settings.hpp:47
constexpr double FOLIATION_SPACING
Default distance between successive foliated timeslices.
Definition Settings.hpp:49
constexpr Int_precision PRECISION
Sets the precision for MPFR.
Definition Settings.hpp:44
constexpr int ALIGNMENT_64_BIT
Aligns data for ease of access on 64-bit CPUs at the expense of padding.
Definition Settings.hpp:58
constexpr int ALIGNMENT_32_BIT
Except when we only need 32 bits.
Definition Settings.hpp:61
std::int32_t Int_precision
Definition Settings.hpp:30
CGAL::Gmpzf Gmpzf
Definition Settings.hpp:23
constexpr Int_precision GV_BOUNDING_BOX_SIZE
Depends on INITIAL_RADIUS and RADIAL_FACTOR.
Definition Settings.hpp:55
constexpr double TOLERANCE
Sets epsilon values for floating point comparisons.
Definition Settings.hpp:52