[gmx-developers] trajana.h trajana.c

Paolo Franz paolo.franz at gmail.com
Wed Apr 11 11:18:56 CEST 2012


Hello everybody,
For sometimes, I have been developing analysis tools for gromacs
trajectories using the gromacs library. I am puzzled about some definitions
in the file trajana.h, which I do not seem to understand completely. Why
are definitions such as

#define ANA_USE_TOPX         (1<<1)

#define ANA_NOUSER_PBC       (1<<4)

used in the code? What is the purpose of this bitwise shift - why not set
ANA_USE_TOPX and ANA_NOUSER_PBC to 2 and 16 for instance??

Thanks in advance

Paolo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://maillist.sys.kth.se/pipermail/gromacs.org_gmx-developers/attachments/20120411/46db5668/attachment.html>


More information about the gromacs.org_gmx-developers mailing list