start writing tester for body/nparticle

This commit is contained in:
Axel Kohlmeyer
2020-07-13 21:49:46 -04:00
parent ea1d447703
commit 18928c6602
3 changed files with 615 additions and 8 deletions

View File

@ -560,8 +560,10 @@ bigint AtomVecBody::memory_usage_bonus()
int nall = nlocal_bonus + nghost_bonus;
for (int i = 0; i < nall; i++) {
bytes += bonus[i].ninteger * sizeof(int);
bytes += bonus[i].ndouble * sizeof(double);
if (body[i] >= 0) {
bytes += bonus[body[i]].ninteger * sizeof(int);
bytes += bonus[body[i]].ndouble * sizeof(double);
}
}
return bytes;