How to get the Atom-type with the Atom global ID given in the .cpp programming

Hi, lammps developers,

I have a simple question to ask. If I know the atom global ID, how to find out the corresponding atom type in lammps programming? Thanks

D. Chai

atom->map(global-ID) gives the local ID.

type[local-ID] is the atom type


Dear Steve,

Thank you very much for your help. :slight_smile:

D. Chai