← Back to team overview

yade-dev team mailing list archive

Re: [Branch ~yade-dev/yade/trunk] Rev 2962: - make body iterators jump empty slots, as suggested and discussed here: http://www.mail-archive....

 

Thanks for the script Anton.
I found the problem: you were erasing body 0 (begin()) and I was only
checking validity inside the ++ operator (so that my tests by erasing
random bodies where ok).
I fixed that.
I found that the macro YADE_PARALLEL_FOREACH_BODY_BEGIN() has to be
fixed too, since it doesn't use iterators but indexes.

Bruno


References