IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 1eca04b6 authored by Maximilian Reininghaus's avatar Maximilian Reininghaus :vulcan: Committed by ralfulrich
Browse files

constexpr removed from nucleus_mass()

parent 9f89b5c0
No related branches found
No related tags found
1 merge request!280Refactory 2020
...@@ -144,7 +144,7 @@ namespace corsika { ...@@ -144,7 +144,7 @@ namespace corsika {
} }
//! returns mass of (A,Z) nucleus, disregarding binding energy //! returns mass of (A,Z) nucleus, disregarding binding energy
HEPMassType constexpr nucleus_mass(const int A, const int Z) { HEPMassType nucleus_mass(const int A, const int Z) {
auto const absA = std::abs(A); auto const absA = std::abs(A);
auto const absZ = std::abs(Z); auto const absZ = std::abs(Z);
return Proton::mass() * absZ + (absA - absZ) * Neutron::mass(); return Proton::mass() * absZ + (absA - absZ) * Neutron::mass();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment