sanity check that occasionsal list is assigned to an NPair class

This commit is contained in:
Steve Plimpton
2024-07-22 14:37:13 -06:00
parent c6b7143863
commit 572c511830

View File

@ -1,4 +1,4 @@
// clang-format off
// clang-format off
/* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
https://www.lammps.org/, Sandia National Laboratories
@ -1077,7 +1077,7 @@ int Neighbor::init_pair()
for (i = 0; i < nlist; i++) {
if (lists[i]->occasional == 0 && lists[i]->pair_method)
plist[npair_perpetual++] = i;
if (lists[i]->occasional)
if (lists[i]->occasional && lists[i]->pair_method)
olist[npair_occasional++] = i;
}