Bugfixes;

Restarts now reproduce longer Sims
This commit is contained in:
2024-09-11 14:56:14 +02:00
parent 75bb2e4d85
commit b4cbd8c44c
9 changed files with 53 additions and 14 deletions
+5 -4
View File
@@ -10,10 +10,11 @@ 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;
// maximum length for the string produced by the "<<"-operator
// of the mt19973 engine. ("empirical" value, might be too low,
// or depend on the system)
static const size_t engine_string_length_max = 6730;
// 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