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 10fd60f8 authored by frey_m's avatar frey_m
Browse files

Fix compilation bug of GTESTs due to new bunch interface

parent fc2135cc
No related branches found
No related tags found
No related merge requests found
...@@ -31,6 +31,8 @@ ...@@ -31,6 +31,8 @@
#include "BeamlineGeometry/Euclid3DGeometry.h" #include "BeamlineGeometry/Euclid3DGeometry.h"
#include "AbsBeamline/Component.h" #include "AbsBeamline/Component.h"
#include "Algorithms/PartBunchBase.h"
/** Mockups for an Opal Component (e.g. field object). The idea is to test /** Mockups for an Opal Component (e.g. field object). The idea is to test
* field lookup routines and placement routines and the like by generating a * field lookup routines and placement routines and the like by generating a
* "fake" component. * "fake" component.
...@@ -69,7 +71,7 @@ public: ...@@ -69,7 +71,7 @@ public:
E(2) = -r(2); E(2) = -r(2);
return false; // NOT isOutOfBounds return false; // NOT isOutOfBounds
} }
void initialise(PartBunch*, double&, double&) {} void initialise(PartBunchBase<double, 3>*, double&, double&) {}
void finalise() {} void finalise() {}
bool bends() const {return true;} bool bends() const {return true;}
void getDimensions(double&, double&) const {} void getDimensions(double&, double&) const {}
...@@ -114,7 +116,7 @@ public: ...@@ -114,7 +116,7 @@ public:
E(2) = 0.; E(2) = 0.;
return false; // NOT isOutOfBounds return false; // NOT isOutOfBounds
} }
void initialise(PartBunch*, double&, double&) {} void initialise(PartBunchBase<double, 3>*, double&, double&) {}
void finalise() {} void finalise() {}
bool bends() const {return true;} bool bends() const {return true;}
void getDimensions(double&, double&) const {} void getDimensions(double&, double&) const {}
......
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