Hi Everyone,
I have run into a fix ave/atom related error using LAMMPS, and I could not find a mailing list thread discussing this already.
I want to use this fix to average per-atom values over a run.
My understanding from the manual (link), is that to average at the timestep 100 over the 6 preceeding timesteps 90,92,94,96,98,100: Nevery=2, Nrepeat=6, and Nfreq=100.
Nrepeat is 6, and not 5, because you have to count the starting step 90 as well.
Nfreq seems to be the 100th timestep since the run, and not the 100th timestep overall in the simulation.
The manual also says: “The per-atom values can only be accessed on timesteps that are multiples of Nfreq since that is when averaging is performed.”
Seems pretty straightforward, but here’s the problem:
fix avg all ave/atom 2 6 100 x y z #syntax: fix ID group-ID ave/atom Nevery Nrepeat Nfreq value1 value2 ...
run 400 every 200 "write_dump all custom ${filename} id type mass f_avg[*]"
This script is supposed to average values every 100th timestep. At the 200th timestep, the fix should have been evaluated twice.
Also, at the the 200th run the dump script should be executed.
However, I get the error:
ERROR: Dump custom and fix not computed at compatible times (../dump_custom.cpp:340)
Last command: write_dump all custom ${filename} id type mass f_avg[*]
I am stumped as to why this might be happening. Would greatly appreciate any leads on this matter.
Stay safe and healthy,
Best,
Praneeth