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

Opal maps

Merged snuverink_j requested to merge OPAL-maps into master
1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
@@ -241,9 +241,11 @@ void ThickTracker::checkElementOrder_m() {
for (FieldList::iterator it = elements.begin(); it != elements.end(); ++it) {
double pos = it->getElement()->getElementPosition();
// we have to take this length due to dipole --> arclength
if ( std::abs(pos - currentEnd) > threshold_m ) {
if ( currentEnd - pos > threshold_m ) {
std::cout << pos << " - " << currentEnd << std::endl;
throw OpalException("ThickTracker::checkOrder_m()",
std::string("Elements are not in ascending order or overlap.") +
" Element Name: " + it->getElement()->getName() +
" ELEMEDGE position: " + std::to_string(pos) +
" Beamline end " + std::to_string(currentEnd) +
" element length " + std::to_string(std::get<2>(*el))) ;
Loading