From a1556502d020e3d6a1e2693951e8998e9ab74acf Mon Sep 17 00:00:00 2001 From: ralfulrich <ralf.ulrich@kit.edu> Date: Mon, 14 Jan 2019 14:48:41 +0100 Subject: [PATCH] also allow reference members in FourVector --- Processes/Sibyll/Decay.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Processes/Sibyll/Decay.h b/Processes/Sibyll/Decay.h index 217ed87f..c45f3dd4 100644 --- a/Processes/Sibyll/Decay.h +++ b/Processes/Sibyll/Decay.h @@ -167,6 +167,11 @@ namespace corsika::process { using corsika::geometry::Point; using namespace corsika::units::si; + // TODO: this should be done in a central, common place. Not here.. +#ifndef CORSIKA_OSX + feenableexcept(FE_INVALID); +#endif + fCount++; SibStack ss; ss.Clear(); @@ -212,6 +217,11 @@ namespace corsika::process { } // empty sibyll stack ss.Clear(); + + // TODO: this should be done in a central, common place. Not here.. +#ifndef CORSIKA_OSX + fedisableexcept(FE_INVALID); +#endif } }; } // namespace sibyll -- GitLab