forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@10968 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
b927375ca4
commit
4d4698f099
|
@ -467,12 +467,11 @@ void Neighbor::init()
|
||||||
stencil_create = new StencilPtr[nlist];
|
stencil_create = new StencilPtr[nlist];
|
||||||
|
|
||||||
// create individual lists, one per request
|
// create individual lists, one per request
|
||||||
// copy dnum setting from request to list
|
|
||||||
// pass list ptr back to requestor (except for Command class)
|
// pass list ptr back to requestor (except for Command class)
|
||||||
|
// wait to allocate initial pages until copy lists are detected
|
||||||
|
|
||||||
for (i = 0; i < nlist; i++) {
|
for (i = 0; i < nlist; i++) {
|
||||||
lists[i] = new NeighList(lmp);
|
lists[i] = new NeighList(lmp);
|
||||||
lists[i]->setup_pages(pgsize,oneatom,requests[i]->dnum);
|
|
||||||
lists[i]->index = i;
|
lists[i]->index = i;
|
||||||
|
|
||||||
if (requests[i]->pair) {
|
if (requests[i]->pair) {
|
||||||
|
@ -595,6 +594,12 @@ void Neighbor::init()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// allocate initial pages for each list, except if listcopy set
|
||||||
|
|
||||||
|
for (i = 0; i < nlist; i++)
|
||||||
|
if (!lists[i]->listcopy)
|
||||||
|
lists[i]->setup_pages(pgsize,oneatom,requests[i]->dnum);
|
||||||
|
|
||||||
// set ptrs to pair_build and stencil_create functions for each list
|
// set ptrs to pair_build and stencil_create functions for each list
|
||||||
// ptrs set to NULL if not set explicitly
|
// ptrs set to NULL if not set explicitly
|
||||||
// also set cudable to 0 if any neigh list request is not cudable
|
// also set cudable to 0 if any neigh list request is not cudable
|
||||||
|
|
Loading…
Reference in New Issue