[lammps-users] nlocal and ilist->inum

atom->nlocal and ilist->inum; are they same? If so, what is the use of two different vairiables to store the same information?

Usually, but not always the same. When using pair_style hybrid,
neighbor lists can be for subsets of all the atoms owned
by a proc.