1
0
Fork 0
mirror of https://github.com/cosmo-sims/MUSIC.git synced 2024-09-19 17:03:46 +02:00

tetmesh: fixed an error in GET_SUBSHIFT

This commit is contained in:
Oliver Hahn 2013-10-24 20:15:17 +02:00
parent 27a6ed893e
commit 5f467e81d5

View file

@ -30,7 +30,7 @@
#define ADD_REFINEMENT_COUNTERS(x,y) ((x)+((y)&(15ll<<60))) // adds the counter of y to x, maintains rest of x
#define SET_REFINEMENT_COUNTER(x,n) ((((x)&(~(15ll<<60)))+(((long long)n)<<60)))
#define GET_REFINEMENT_COUNTER(x) (((x)>>60)&(15ll))
#define GET_SUBSHIFT(lid,i,refl) ((lid >> (20*((i)+1)-tetgrid_baselevel-refl))&1ll)
#define GET_SUBSHIFT(lid,i,refl) ((lid >> (20*((i)+1)-refl))&1ll)
#define REMOVE_FREE_PARTICLE_BIT(x) ((x)&(~(1ll<<63)))