Hi
I am studying the code for the pair_sw.cpp, to make some modifications on it, but I don't understand this paragraph,
if \(itag > jtag\) \{ // First condition
if \(\(itag\+jtag\) % 2 == 0\) continue;
\}
else if \(itag < jtag\) \{ // Second condition
if \(\(itag\+jtag\) % 2 == 1\) continue;
\}
else \{ // Last condition
if \(x\[j\]\[2\] < ztmp\) continue;
if \(x\[j\]\[2\] == ztmp && x\[j\]\[1\] < ytmp\) continue;
if \(x\[j\]\[2\] == ztmp && x\[j\]\[1\] == ytmp && x\[j\]\[0\] < xtmp\) continue;
\}
I can see that this code filters the neighbouring atoms. The last condition selects those atoms above the actual, but I don't understand the
purpose of the first and second conditions. Can anybody explain me the purpose of the first and second conditions?
Thanks a lot.