Commit 2e97949f authored by snuverink_j's avatar snuverink_j
Browse files

Merge branch '293-stripper-element-not-losing-any-particles' into 'master'

Resolve "Stripper Element not losing any particles"

Closes #293

See merge request OPAL/src!68
parents 08b07e10 3bab3ef7
......@@ -74,6 +74,7 @@ bool Stripper::doCheck(PartBunchBase<double, 3> *bunch, const int turnnumber, co
bool flagNeedUpdate = false;
bool flagresetMQ = false;
Vector_t rmin, rmax, strippoint;
bunch->get_bounds(rmin, rmax);
// interested in absolute maximum
double xmax = std::max(std::abs(rmin(0)), std::abs(rmax(0)));
double ymax = std::max(std::abs(rmin(1)), std::abs(rmax(1)));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment