IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 39f02fd0 authored by Marvin Gottowik's avatar Marvin Gottowik
Browse files

Merge branch 'move_error_output_to_debug' into 'master'

move error outputs to debug

See merge request !650
parents b9c2d00a e400a174
No related branches found
No related tags found
1 merge request!650move error outputs to debug
Pipeline #14262 passed
......@@ -296,6 +296,22 @@ namespace corsika {
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
return;
}
......
......@@ -107,7 +107,7 @@ namespace corsika {
// this branch cannot be unit-testes. This is malfunction: LCOV_EXCL_START
if (minTime < 0_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 "
"may "
"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