← Back to team overview

yade-users team mailing list archive

Re: [Question #683511]: meaning of ENABLE_MASK_ARBITRARY


Question #683511 on Yade changed:

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hi Luc,

TLTR: it is not related to your problem

Body.mask in Python or Body::groupMaks in C++ is of type int, which is
usually 64 bit number. If you need / want a higher number of bits (not
usual case), you can use std::bitset instead.

The latter is used if YADE_MASK_ARBITRARY macro is defined (done by
cmake if ENABLE_MASK_ARBITRARY=ON is passed to cmake). The size of the
mask is defined at compile time by MASK_ARBITRARY_SIZE macro.


[1] https://gitlab.com/yade-dev/trunk/blob/master/core/Body.hpp#L84
[2] https://gitlab.com/yade-dev/trunk/blob/master/lib/base/Math.hpp#L274
[3] https://gitlab.com/yade-dev/trunk/blob/master/lib/base/Math.hpp#L260

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