Phyth
v0.1.0
A dimensional safe C++ header-only mechanics and electromagnetics simulation library.
Loading...
Searching...
No Matches
include
Phyth
System
Config.hpp
Go to the documentation of this file.
1
#ifndef PHYTH_CONFIG_HPP
2
#define PHYTH_CONFIG_HPP
3
4
namespace
Phyth
{
5
enum class
OutputMode
{
6
Auto
,
7
Raw
8
};
9
10
11
namespace
Config {
12
inline
auto
output_mode
=
OutputMode::Auto
;
13
inline
double
epsilon
= 1e-6;
14
inline
int
max_iterations
= 50;
15
inline
double
tolerance
= 1e-12;
16
17
inline
void
Reset
()
noexcept
{
18
output_mode
=
OutputMode::Auto
;
19
epsilon
= 1e-6;
20
max_iterations
= 50;
21
tolerance
= 1e-12;
22
}
23
}
24
}
25
#endif
//PHYTH_CONFIG_HPP
Phyth::Config::max_iterations
int max_iterations
Definition
Config.hpp:14
Phyth::Config::epsilon
double epsilon
Definition
Config.hpp:13
Phyth::Config::Reset
void Reset() noexcept
Definition
Config.hpp:17
Phyth::Config::output_mode
auto output_mode
Definition
Config.hpp:12
Phyth::Config::tolerance
double tolerance
Definition
Config.hpp:15
Phyth
Definition
Dimension.hpp:10
Phyth::is_unit_v
constexpr bool is_unit_v
Definition
Unit.hpp:79
Phyth::OutputMode
OutputMode
Definition
Config.hpp:5
Phyth::OutputMode::Auto
@ Auto
Phyth::OutputMode::Raw
@ Raw
Generated by
1.9.8