← 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:

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:

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