IAP GITLAB

Commit 1c8789e5 authored by Felix Riehn's avatar Felix Riehn
Browse files

avoid problem with clang and math func in constexpr, clang is prob. right

parent 7ca2a7cd
Pipeline #896 passed with stages
in 10 minutes and 42 seconds
......@@ -125,10 +125,13 @@ namespace corsika::process::sibyll {
//
// number of steps in energy for cross section table (sibyll internal value is 61)
static constexpr int fNenBins = 61;
static constexpr double fLog10MinEnergyCoM =
log10(fMinEnergyCoM / 1e9 / corsika::units::si::electronvolt);
static constexpr double fLog10MaxEnergyCoM =
log10(fMaxEnergyCoM / 1e9 / corsika::units::si::electronvolt);
// hard code log10 of limits given above
static constexpr double fLog10MinEnergyCoM = 1.;
// clang does not like: log10(fMinEnergyCoM / 1e9 /
// corsika::units::si::electronvolt);
static constexpr double fLog10MaxEnergyCoM = 7.;
// clang does not like: log10(fMaxEnergyCoM / 1e9 /
// corsika::units::si::electronvolt);
static constexpr double fDeltaLog10EnergyCoM =
(fLog10MaxEnergyCoM - fLog10MinEnergyCoM) / double(fNenBins);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment