Moved rerun bug fix to individual affected styles

This commit is contained in:
David Nicholson
2017-11-14 14:01:07 -05:00
parent 751465aad3
commit e55c90cc44
4 changed files with 10 additions and 4 deletions

View File

@ -112,8 +112,10 @@ void ComputeClusterAtom::compute_peratom()
}
// invoke full neighbor list (will copy or build if necessary)
// on the first step of a run, set preflag to one in neighbor->build_one(...)
neighbor->build_one(list);
if (update->firststep == update->ntimestep) neighbor->build_one(list,1);
else neighbor->build_one(list);
inum = list->inum;
ilist = list->ilist;