Commit b8c39e4b authored by Daniel Winklehner's avatar Daniel Winklehner
Browse files

added mm to m conversion in call to PartInside -DW

parent 6ebebbcf
......@@ -194,18 +194,17 @@ void ParallelCyclotronTracker::bgf_main_collision_test() {
Inform msg("bgf_main_collision_test ");
/**
Here we check if a particles is
outside the domain, flag it for
deletion
*/
/**
*Here we check if a particles is outside the domain, flag it for deletion
*/
Vector_t intecoords = bgf_m->getmaxcoords() + bgf_m->gethr();
double dtime = 0.5 * itsBunch->getdT();
double Energy = 0.0;
int triId = 0;
size_t Nimpact = 0;
for(size_t i = 0; i < itsBunch->getLocalNum(); i++) {
int res = bgf_m->PartInside(itsBunch->R[i], itsBunch->P[i], dtime, itsBunch->PType[i], itsBunch->Q[i], intecoords, triId, Energy);
int res = bgf_m->PartInside(itsBunch->R[i]*1.0e-3, itsBunch->P[i], dtime, itsBunch->PType[i], itsBunch->Q[i], intecoords, triId, Energy);
if(res >= 0) {
itsBunch->Bin[i] = -1;
Nimpact++;
......
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