22 lines
719 B
C++
Executable File
22 lines
719 B
C++
Executable File
#ifndef SIM_CONSTANTS_H
|
|
#define SIM_CONSTANTS_H
|
|
|
|
#include <limits>
|
|
|
|
// constants due to numercial accuracy
|
|
namespace SimConstants {
|
|
// minimal value for a cross section
|
|
static const double minimal_cross_section =
|
|
std::numeric_limits<double>::min() * 1E5;
|
|
// minimal value for a cross section scaled by density
|
|
static const double minimal_macroscopic_cross_section =
|
|
std::numeric_limits<double>::min() * 1E5;
|
|
// arbitrarily chosen value to serve as the lowest value possible (to exclude 0)
|
|
static const double random_lower_limit = 1E-15;
|
|
// double1 == double2 <=> abs(double1 - double2) <= compare_epsilon
|
|
static const double compare_epsilon = 1E-10;
|
|
|
|
} // namespace SimConstants
|
|
|
|
#endif /* SIM_CONSTANTS_H */
|