Commit 23656bfe authored by kraus's avatar kraus
Browse files

correct non-sense criterion

parent ff8a9527
......@@ -2469,12 +2469,12 @@ size_t PartBunch::boundp_destroyT() {
}
} else {
for(unsigned int i = 0; i < this->getLocalNum(); i++) {
if((Bin[i] < 0) && ((this->getLocalNum()-i)>1)) { // need in minimum 1 particle per node
ne++;
this->destroy(1, i);
}
if((Bin[i] < 0) && ((this->getLocalNum() - ne) > 1)) { // need in minimum 1 particle per node
ne++;
this->destroy(1, i);
}
}
lowParticleCount_m = ((this->getLocalNum()-ne) <= 1);
lowParticleCount_m = ((this->getLocalNum() - ne) <= 1);
reduce(lowParticleCount_m, lowParticleCount_m, OpOr());
}
update();
......
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