Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit e225c5f8 authored by frey_m's avatar frey_m
Browse files

OPAL/src issue #277: Check also if unphysical values (arbitrary threshold)

parent 2b22cdbd
No related branches found
No related tags found
1 merge request!57Master
......@@ -33,16 +33,19 @@ public:
bool isNaN = false;
for (int j = 0; j < 3; ++j) {
if (std::isnan(bunch->R[i](j)) ||
std::isnan(bunch->P[i](j))) {
std::isnan(bunch->P[i](j)) ||
std::abs(bunch->R[i](j)) > 1.0e20 ||
std::abs(bunch->P[i](j)) > 1.0e20) {
isNaN = true;
break;
}
}
if ( !isGood || isNaN) {
bool isBad = (!isGood || isNaN);
if ( isBad ) {
bunch->Bin[i] = -1;
}
return !isGood;
return isBad;
};
protected:
......
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