[lammps-users] fix ave/time error

Hi, all

I want to output time and spatial averaged atomic stress in my script, but one error comes out. How should I do to avoid this ?
Thanks in advance.

error : Thermo and fix not computed at compatible times

script

fix avg mygroup ave/time 1 500 500 c_pall[1] c_pall[2] c_pall[3] file avg.stress

should work for you.

Your fix produces an averaged quantity every 500 timesteps.
Your thermo command is asking to print that quantity every
timestep. You can only print it on a multiple of 500 steps.
Thus the error.

Steve