IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 3b08fa27 authored by ralfulrich's avatar ralfulrich Committed by Ralf Ulrich
Browse files

rare numerical instability, curved->straight

parent f990a7a2
No related branches found
No related tags found
No related merge requests found
......@@ -112,8 +112,7 @@ namespace corsika {
}
CORSIKA_LOG_TRACE("check m={}", m);
if (m == 0) { return {0}; }
CORSIKA_LOG_TRACE("check m={}", m);
if (m < 0) { return {}; } // this is a rare numerical instability
long double const quad_term1 = p / 2 + m;
long double const quad_term2 = std::sqrt(2 * m);
......
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