← Back to team overview

yade-users team mailing list archive

Re: [Question #683384]: After deletion of particles, why the output of particle number remains unchanged

 

Question #683384 on Yade changed:
https://answers.launchpad.net/yade/+question/683384

Robert Caulk proposed the following answer:
If you iterate on the bodies, it will not count erased bodies:

count = 0 
for b in O.bodies:
    count+=1

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.