Thread Previous • Date Previous • Date Next • Thread Next |
On 05/27/2016 05:22 AM, noreply@xxxxxxxxxxxxx wrote:
------------------------------------------------------------ revno: 3874 committer: jduriez <jerome.duriez@xxxxxxxxxxx> === modified file 'pkg/dem/Shop_02.cpp' + if( !dynamic_cast<Sphere*>(Body::byId(I->getId1(),scene)->shape.get()) || !dynamic_cast<Sphere*>(Body::byId(I->getId2(),scene)->shape.get()) ) continue; // test intended to + if( !dynamic_cast<Sphere*>(Body::byId(I->getId1(),scene)->shape.get()) || !dynamic_cast<Sphere*>(Body::byId(I->getId2(),scene)->shape.get()) ) continue; // test intended to disregard boundary interactions (in non-periodic simulations)
Hi Jérôme,A problem I see is you made of fabricTensor() something which will work only for spheres while it was working perfectly for every possible shape before the above change. I don't understand the relation between the "split" parameter and this change.
Could you please explain?Besides, small tips on coding: better use getClassIndex() to check types, not plain cast<>'s (I know casts still appear here and there but we should certainly not introduce more of them).
Cheers. Bruno
Thread Previous • Date Previous • Date Next • Thread Next |