Fix pointer assignment in pair_kim

Bug only affects cases where neighbor list needs to be stripped.
Thanks to Mingjian Wen (@mjwen) for finding and reporting this.
This commit is contained in:
Ryan S. Elliott 2019-04-05 10:14:45 -05:00
parent 560ccb2719
commit 175f3ee648
1 changed files with 1 additions and 1 deletions

View File

@ -481,7 +481,7 @@ void PairKIM::init_style()
for (int i = 0; i < kim_number_of_neighbor_lists; ++i)
{
lmps_stripped_neigh_ptr[i]
= &(lmps_stripped_neigh_list[(i-1)*(neighbor->oneatom)]);
= &(lmps_stripped_neigh_list[i*(neighbor->oneatom)]);
}
}