OMP force container fails to reset forces on clump members
Bug #923929 reported by
Bruno Chareyre
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Yade |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
When clumps are used and no gravity engine is present, force containers are not reseting the forces on clump members. Junk values are accumulated over time and the clump itself soon disappears.
A workaround is to addForce(0,0,0) once at startup on all bodies, this is done in Newton::action() currently.
This is most probably (still to check) because containers sizes are checked vs. body Id only in addForce, which is never applied on clump members before they are in contact with something. Not clear is why the same problem does not appear also on standalone bodies.
The crashing example was obtained from a series of personal scripts from Klaus Thoeni, not disclosed here.
To post a comment you must log in.
Workarounded in bzr3009.
Would still be nice to really fix.