Fix compile errors from neigh history refactor

This commit is contained in:
Stan Moore
2017-10-13 10:49:31 -06:00
parent 01051e4cb1
commit f6ddc8c7c9
2 changed files with 0 additions and 12 deletions

View File

@ -49,15 +49,6 @@ void NeighListKokkos<Device>::grow(int nmax)
d_neighbors = d_neighbors =
typename ArrayTypes<Device>::t_neighbors_2d("neighlist:neighbors", typename ArrayTypes<Device>::t_neighbors_2d("neighlist:neighbors",
maxatoms,maxneighs); maxatoms,maxneighs);
memory->sfree(firstneigh);
memory->sfree(firstdouble);
firstneigh = (int **) memory->smalloc(maxatoms*sizeof(int *),
"neighlist:firstneigh");
if (dnum)
firstdouble = (double **) memory->smalloc(maxatoms*sizeof(double *),
"neighlist:firstdouble");
} }
/* ---------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- */

View File

@ -41,10 +41,7 @@ void NPairCopyKokkos<DeviceType>::build(NeighList *list)
list->gnum = listcopy->gnum; list->gnum = listcopy->gnum;
list->ilist = listcopy->ilist; list->ilist = listcopy->ilist;
list->numneigh = listcopy->numneigh; list->numneigh = listcopy->numneigh;
list->firstneigh = listcopy->firstneigh;
list->firstdouble = listcopy->firstdouble;
list->ipage = listcopy->ipage; list->ipage = listcopy->ipage;
list->dpage = listcopy->dpage;
NeighListKokkos<DeviceType>* list_kk = (NeighListKokkos<DeviceType>*) list; NeighListKokkos<DeviceType>* list_kk = (NeighListKokkos<DeviceType>*) list;
NeighListKokkos<DeviceType>* listcopy_kk = (NeighListKokkos<DeviceType>*) list->listcopy; NeighListKokkos<DeviceType>* listcopy_kk = (NeighListKokkos<DeviceType>*) list->listcopy;