}
/* Copies the energy group indices to a reordered and packed array */
-static void
-copy_egp_to_nbat_egps(const int* a, int na, int na_round, int na_c, int bit_shift, const int* in, int* innb)
+static void copy_egp_to_nbat_egps(const int* a,
+ int na,
+ int na_round,
+ int na_c,
+ int bit_shift,
+ ArrayRef<const int> atomInfo,
+ int* atomInfoNb)
{
int i = 0, j = 0;
for (; i < na; i += na_c)
int at = a[i + sa];
if (at >= 0)
{
- comb |= (GET_CGINFO_GID(in[at]) << (sa * bit_shift));
+ comb |= (atomInfo[at] & sc_atomInfo_EnergyGroupIdMask) << (sa * bit_shift);
}
}
- innb[j++] = comb;
+ atomInfoNb[j++] = comb;
}
/* Complete the partially filled last cell with fill */
for (; i < na_round; i += na_c)
{
- innb[j++] = 0;
+ atomInfoNb[j++] = 0;
}
}
numAtoms,
c_nbnxnCpuIClusterSize,
params->neg_2log,
- atomInfo.data(),
+ atomInfo,
params->energrp.data() + grid.atomToCluster(atomOffset));
}
}