Added changes to Atom and Device classes for allocation of extra fields and SBBITS15 and NEIGHMASK15

This commit is contained in:
Trung Nguyen
2021-08-26 09:33:20 -05:00
parent db92844228
commit 91317b2879
5 changed files with 89 additions and 11 deletions

View File

@ -330,6 +330,10 @@
#define NEIGHMASK 0x3FFFFFFF
ucl_inline int sbmask(int j) { return j >> SBBITS & 3; };
#define SBBITS15 29
#define NEIGHMASK15 0x1FFFFFFF
ucl_inline int sbmask15(int j) { return j >> SBBITS15 & 7; };
// default to 32-bit smallint and other ints, 64-bit bigint:
// same as defined in src/lmptype.h
#if !defined(LAMMPS_SMALLSMALL) && !defined(LAMMPS_BIGBIG) && \