IAP GITLAB

Skip to content
Snippets Groups Projects
Commit e400a174 authored by Marvin Gottowik's avatar Marvin Gottowik Committed by Alice Faure
Browse files

move errors to debug

parent b9c2d00a
No related branches found
No related tags found
1 merge request!650move error outputs to debug
Pipeline #14224 passed
...@@ -296,6 +296,22 @@ namespace corsika { ...@@ -296,6 +296,22 @@ namespace corsika {
CORSIKA_LOG_DEBUG("step limit reached (e.g. deflection). nothing further happens."); CORSIKA_LOG_DEBUG("step limit reached (e.g. deflection). nothing further happens.");
// final sanity check, no actions
{
auto const* numericalNodeAfterStep =
environment_.getUniverse()->getContainingNode(particle.getPosition());
CORSIKA_LOG_TRACE(
"Geometry check: numericalNodeAfterStep={} currentLogicalNode={}",
fmt::ptr(numericalNodeAfterStep), fmt::ptr(currentLogicalNode));
if (numericalNodeAfterStep != currentLogicalNode) {
CORSIKA_LOG_DEBUG(
"expect to be in node currentLogicalNode={} but are in "
"numericalNodeAfterStep={}. Continue, but without guarantee.",
fmt::ptr(currentLogicalNode), fmt::ptr(numericalNodeAfterStep));
}
}
// we did not cross any volume boundary
// step length limit // step length limit
return; return;
} }
......
...@@ -107,7 +107,7 @@ namespace corsika { ...@@ -107,7 +107,7 @@ namespace corsika {
// this branch cannot be unit-testes. This is malfunction: LCOV_EXCL_START // this branch cannot be unit-testes. This is malfunction: LCOV_EXCL_START
if (minTime < 0_s) { if (minTime < 0_s) {
if (minTime < -1e-8_s) { if (minTime < -1e-8_s) {
CORSIKA_LOG_ERROR( CORSIKA_LOG_DEBUG(
"There is a very negative time step detected: {}. This is not physical and " "There is a very negative time step detected: {}. This is not physical and "
"may " "may "
"easily crash subsequent modules. Set to 0_s, but CHECK AND FIX.", "easily crash subsequent modules. Set to 0_s, but CHECK AND FIX.",
......
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