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:
@ -2162,12 +2162,15 @@ void Neighbor::build_one(class NeighList *mylist, int preflag)
|
|||||||
|
|
||||||
// if this is copy list and parent is occasional list,
|
// if this is copy list and parent is occasional list,
|
||||||
// or this is halffull 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
|
// insure parent is current
|
||||||
|
|
||||||
if (mylist->listcopy && mylist->listcopy->occasional)
|
if (mylist->listcopy && mylist->listcopy->occasional)
|
||||||
build_one(mylist->listcopy,preflag);
|
build_one(mylist->listcopy,preflag);
|
||||||
if (mylist->listfull && mylist->listfull->occasional)
|
if (mylist->listfull && mylist->listfull->occasional)
|
||||||
build_one(mylist->listfull,preflag);
|
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
|
// create stencil if hasn't been created since last setup_bins() call
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user