When reading the codes of pair_tersoff.cpp or pair_sw.cpp, I could hardly
understand what is the relation between i and tag[i]; and j = neighs[m],
which is in the second loop embedded in i-loop, its value can be above the
number of atoms. This is quite confusing for me, can anybody who knows very well the codes explain to me how should I understand this?
Thanks and best regards!