Adjust neighbor lists layout to keep neighbor ids contiguous in memory

Signed-off-by: Rafael Ravedutti <rafaelravedutti@gmail.com>
This commit is contained in:
Rafael Ravedutti
2023-03-30 01:57:26 +02:00
parent 3eb7170a65
commit 43259eb3cf
5 changed files with 51 additions and 53 deletions

View File

@@ -25,11 +25,6 @@
#define NBNXN_INTERACTION_MASK_DIAG_J8_0 0xf0f8fcfeU
#define NBNXN_INTERACTION_MASK_DIAG_J8_1 0x0080c0e0U
typedef struct {
int cj;
unsigned int imask;
} NeighborCluster;
typedef struct {
int every;
int ncalls;
@@ -37,7 +32,8 @@ typedef struct {
int* numneigh;
int* numneigh_masked;
int half_neigh;
NeighborCluster* neighbors;
int* neighbors;
unsigned int* neighbors_imask;
} Neighbor;
extern void initNeighbor(Neighbor*, Parameter*);