I put “compute 3 all stress/atom” to calculate the stress tensor. But it says invalid compute style. Is there any new style to find this stress tensor?
That's the correct syntax. Is there a compute_stress_atom.cpp file
in your src dir and listed in src/style_compute.h?
If not, you didn't build LAMMPS with it.
Steve