finding periodic ghosts on this processor

Hi all. Is there a way to determine if a ghost atom is a periodic image of another atom on the current processor?

Jeremy, I’m thinking map() gives the closest image… if thats the case, you could try checking something like map(tag[i])==i


More precisely, if you call map() on the ID of the ghost
atom, if you get a return value < nlocal, than that
is the owned non-ghost atom. If you get a value >= nlocal,
then its (some) ghost atom, and that proc does not
own the non-ghost original.