diff --git a/Processes/Sibyll/Decay.h b/Processes/Sibyll/Decay.h index 217ed87fac7a4512a901fabaa995d81ff81ea5cd..c45f3dd46cb7b67c7d7da79295b43952a05bac00 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