← Back to team overview

yade-dev team mailing list archive

Re: [Branch ~yade-dev/yade/trunk] Rev 2221: subscribedBodies parameter is added to VTKRecorder

 

> If we use a bitmask, FOREACH will pass through all bodies, checking,
> whether it will output to vtk-file or not.
> If I have 50000 bodies and 4 VTKRecorders, I will have 50000*4 = 200
> 000 iterations instead of 50 000.
I doubt you would even notice those empty loops. But keep it this way if
you want. If you assign mask, you can use it for other purposes as
well. 
> Also we have a subscribedBodies algorithm in some other engines and
> this is a very clear.
Same for masks.
>  If we use mask instead, it will be a little bit
> complicated to understand, how it is working (even for me, several
> month later).
It is a very elegant solution, though, since you use each bit
separately. I would use mask myself in such kind of problem; it can be
added as well, if needed, though, no problem.

> So, I prefer to stay this algorithm, even it is a little ugly.
As said, no problem.

Cheers, v.




Follow ups

References