[lammps-users] In which cpp file can I find the code for creating ghost atoms and their indexes?

In which cpp file can I find the code for creating ghost atoms and their indexes? As well as how are the numbers nghost, nall determined?

Thanks!

Xiang Gu

Look in communicate.cpp and atom.cpp and atom_vec_*.cpp.

Steve