Files
karl/include/constants/sim_constants.h
T
csendlinger b4cbd8c44c Bugfixes;
Restarts now reproduce longer Sims
2024-09-11 14:56:14 +02:00

22 lines
839 B
C++
Executable File

#ifndef SIM_CONSTANTS_H
#define SIM_CONSTANTS_H
#include <limits>
namespace SimConstants {
static const double minimal_cross_section =
std::numeric_limits<double>::min() * 1E5;
static const double minimal_macroscopic_cross_section =
std::numeric_limits<double>::min() * 1E5;
static const double random_lower_limit = 1E-15;
static const double compare_epsilon = 1E-10;
// engine state of mt19973 engine consists of 624 numbers (output seems to write 625)
// (assumed to be constant); each number is represented by a 32 bit word (2^32 = 4294967296)
// i.e. each number needs at most 10 digits; the numbers are seperated by whitespaces
// -> max length = 10*625 + 624 = 6874 (add one more digit to be on the safe side)
static const size_t engine_string_length_max = 6875;
} // namespace SimConstants
#endif /* SIM_CONSTANTS_H */