IAP GITLAB

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

add hint to exception from cross section table

parent d7a38cb3
No related branches found
No related tags found
1 merge request!549Draft: "Use Pythia for interactions"
......@@ -61,10 +61,10 @@ namespace corsika {
auto const lb_it =
std::lower_bound(table_.cbegin(), table_.cend(), transformed_val, less_x);
if (lb_it == table_.cbegin()) {
throw std::runtime_error{"value out of bounds (lower limit)"};
throw std::runtime_error{"CrossSectionTable: value out of bounds (lower limit)"};
}
if (lb_it == table_.cend()) {
throw std::runtime_error{"value out of bounds (upper limit)"};
throw std::runtime_error{"CrossSectionTable: value out of bounds (upper limit)"};
}
auto const prev_it = std::prev(lb_it);
......
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