insure compute pair/property local will use a copy of granular neigh list
This commit is contained in:
@ -280,12 +280,16 @@ void ComputePropertyLocal::init()
|
||||
}
|
||||
|
||||
// for NEIGH/PAIR need an occasional half neighbor list
|
||||
// set size to same value as request made by force->pair
|
||||
// this should enable it to always be a copy list (e.g. for granular pstyle)
|
||||
|
||||
if (kindflag == NEIGH || kindflag == PAIR) {
|
||||
int irequest = neighbor->request(this,instance_me);
|
||||
neighbor->requests[irequest]->pair = 0;
|
||||
neighbor->requests[irequest]->compute = 1;
|
||||
neighbor->requests[irequest]->occasional = 1;
|
||||
NeighRequest *pairrequest = neighbor->find_request((void *) force->pair);
|
||||
if (pairrequest) neighbor->requests[irequest]->size = pairrequest->size;
|
||||
}
|
||||
|
||||
// do initial memory allocation so that memory_usage() is correct
|
||||
|
||||
Reference in New Issue
Block a user