IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 5c10afc7 authored by Ralf Ulrich's avatar Ralf Ulrich
Browse files

Merge branch '439-rare-fpe-in-cascade-inl-debug-printout' into 'master'

Resolve "Rare FPE in Cascade.inl debug printout"

Closes #439

See merge request !380
parents 1bc79005 2c261e8c
No related branches found
No related tags found
No related merge requests found
......@@ -266,7 +266,10 @@ namespace corsika {
CORSIKA_LOG_WARN(
"Decay time decreased during step! This leads to un-physical step length. "
"delta_inverse_decay_time={}",
1 / initial_inv_decay_time - 1 / actual_decay_time);
(actual_decay_time != InverseTimeType::zero() &&
initial_inv_decay_time != InverseTimeType::zero()
? 1 / initial_inv_decay_time - 1 / actual_decay_time
: TimeType::zero()));
}
#endif
......
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