Skip to content
Snippets Groups Projects
Unverified Commit 480d7dd6 authored by Steve Plimpton's avatar Steve Plimpton Committed by GitHub
Browse files

Merge pull request #774 from lammps/neigh-tweak

small changes to recent PR to standardize with other npair styles
parents 0cd86413 1b91c0ea
No related branches found
No related tags found
No related merge requests found
......@@ -1089,7 +1089,7 @@ package"_Section_start.html#start_3.
"smd/triangulated/surface"_pair_smd_triangulated_surface.html,
"smd/ulsph"_pair_smd_ulsph.html,
"smtbq"_pair_smtbq.html,
"snap (k)"_pair_sap.html,
"snap (k)"_pair_snap.html,
"sph/heatconduction"_pair_sph_heatconduction.html,
"sph/idealgas"_pair_sph_idealgas.html,
"sph/lj"_pair_sph_lj.html,
......
......@@ -52,6 +52,7 @@ void NPairHalffullNewtoff::build(NeighList *list)
int inum_full = list->listfull->inum;
if (list->ghost) inum_full += list->listfull->gnum;
int inum = 0;
ipage->reset();
// loop over atoms in full list
......@@ -72,7 +73,7 @@ void NPairHalffullNewtoff::build(NeighList *list)
if (j > i) neighptr[n++] = joriginal;
}
ilist[ii] = i;
ilist[inum++] = i;
firstneigh[i] = neighptr;
numneigh[i] = n;
ipage->vgot(n);
......@@ -80,6 +81,6 @@ void NPairHalffullNewtoff::build(NeighList *list)
error->one(FLERR,"Neighbor list overflow, boost neigh_modify one");
}
list->inum = list->listfull->inum;
list->gnum = list->listfull->gnum;
list->inum = inum;
if (list->ghost) list->gnum = list->listfull->gnum;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment