IAP GITLAB
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Air Shower Physics
corsika
Commits
1c8789e5
Commit
1c8789e5
authored
Jun 22, 2019
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Processes/Sibyll/Interaction.h
View file @
1c8789e5
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment