yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #07129
[Branch ~yade-dev/yade/trunk] Rev 2750: oops, sorry
------------------------------------------------------------
revno: 2750
fixes bug(s): https://launchpad.net/bugs/721107
committer: Václav Šmilauer <eu@xxxxxxxx>
branch nick: yade
timestamp: Sun 2011-02-20 12:00:19 +0100
message:
oops, sorry
modified:
pkg/common/VelocityBins.cpp
--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription
=== modified file 'pkg/common/VelocityBins.cpp'
--- pkg/common/VelocityBins.cpp 2011-02-20 10:28:40 +0000
+++ pkg/common/VelocityBins.cpp 2011-02-20 11:00:19 +0000
@@ -12,7 +12,7 @@
bool VelocityBins::checkSize_incrementDists_shouldCollide(const Scene* scene){
// number of particles increased, recollision necessary
// smaller number of particles is handled in setBins
- if(bodyBins.size()>scene->bodies->size()) { bodyBins.resize(scene->bodies->size(),/* put new particles to the slowest bin*/ bins.size()-1); return true; }
+ if(bodyBins.size()<scene->bodies->size()) { bodyBins.resize(scene->bodies->size(),/* put new particles to the slowest bin*/ bins.size()-1); return true; }
int i=0;
const Real& dt=scene->dt;
FOREACH(Bin& bin, bins){
Follow ups