← Back to team overview

yade-dev team mailing list archive

Re: [yade dev] About blocked rotation

 

A few more things:
will take the same place in memory and should maybe be easy to use.
vector<bool> has to store its size additionally, so it is +4 bytes (sizeof(size_t)) for each; not that it is a big deal, though.

We could also use classic c-style bitfield, such as struct{ boo x:1; bool y:1; ... } blockedDOFs, but then again we would have to serialize it as number anyway...

Thanks for suggestion, though. I appreciate people reading code (not just writing, or, yet worse, just pasting ;-) )

Vaclav



References