Commit 175f3ee6 authored by Ryan S. Elliott's avatar Ryan S. Elliott
Browse files

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.
parent 560ccb27
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)]);
      }

   }