Dear lammps community

In the pair.cpp, there is “vflag_atom = vflag / 4” (line 753) which dictates whether lammps would compute atomic stress.

What I want to know is when will this vflag_atom be true? what kind of input command would give you that?


The variable vflag_atom is set at the beginning of of each time step based on whether this information is required for this particular step or not.

If you have something that is “consuming” per-atom stress, then this class will report its needs to lammps.

This is all automated, so not specific input script command is available or necessary.