Hi Christoph,
In the class atom, the sphere positions are sorted, it exists the array j = tag[i] to indicate at the line i you will have the sphere number j. I did not find, if it exists an array such as : i = invtag[j].
This array invtag[] is important in my case, because I load the interactions pair (Si, Sj) and I have noticed that the values of x[Si] do not correspond to the S1 poistion loaded via my file *.sys.
Please, can you help me to find this array (invtag) or desactivate the sorting only when I want to load the interactions file.
Regards
JF
ckloss | Tue, 11/16/2010 - 12:53
Hi JF, if I understand
Hi JF,
if I understand correctly your interaction list is based on tags (which is a good idea).
>>desactivate the sorting
you can do this with "atom_modify 0 0", but that will not make you happy in parallel because as particles get migrated local particles indices loose their meaning in the context of such a list
>>Please, can you help me to find this array (invtag)
atom->map does what you want
Cheers,
Christoph
JF | Tue, 11/16/2010 - 13:58
Hi Christoph, Magnificent,
Hi Christoph,
Magnificent, the function int map(int ) is exactly what I wanted.
Thank you so much
JF