IAP GITLAB

Skip to content
Snippets Groups Projects
Commit d665fb29 authored by ralfulrich's avatar ralfulrich Committed by Felix Riehn
Browse files

comment

parent 37281802
No related branches found
No related tags found
No related merge requests found
......@@ -211,7 +211,11 @@ namespace corsika {
int binEnd = grammageEnd / dX_;
if (binEnd < 0) binEnd = 0;
if (binEnd > maxBin) binEnd = maxBin;
// in upward going showers binEnd may be smaller than binStart, but we don't care:
if (binStart>binEnd) {
std::swap(binStart, binEnd);
}
CORSIKA_LOG_DEBUG("energy deposit of -dE={} between {} and {}", -dE, grammageStart,
grammageEnd);
......
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