build_one() update parent skiplist

if an occasional skip list has an occasional parent list, the parent list must be built when the skip list is built. This patch ensures that behavior. (Otherwise, build_one(foo) returns an empty skip list with no warnings or errors.)
This commit is contained in:
Shern Tee
2020-12-16 15:42:10 +10:00
committed by GitHub
parent 1fee2add51
commit f614aa401e

View File

@ -2162,12 +2162,15 @@ void Neighbor::build_one(class NeighList *mylist, int preflag)
// if this is copy list and parent is occasional list,
// or this is halffull and parent is occasional list,
// or this is skip list and parent is occasional list,
// insure parent is current
if (mylist->listcopy && mylist->listcopy->occasional)
build_one(mylist->listcopy,preflag);
if (mylist->listfull && mylist->listfull->occasional)
build_one(mylist->listfull,preflag);
if (mylist->listskip && mylist->listskip->occasional)
build_one(mylist->listskip,preflag);
// create stencil if hasn't been created since last setup_bins() call