error with Fix ave/spatial

raguelmoon's picture
Submitted by raguelmoon on Mon, 10/03/2011 - 04:51

Hi,
I got error when I use following commands in script:

compute 2 all stress/atom
fix 10 all ave/spatial 100 5 1000 z lower 0.001 fx fy fz density/mass density/number c_2[I] c_2[2] c_2[3] units box file vel.profile

..
.
.
ERROR: Fix ave/spatial compute does not calculate a per-atom vector
However, Fix ave/spatial takes input as per-atom vector.
Thanks,
Ram

jsams | Fri, 05/05/2017 - 02:18

I've been using the following command in my input script and was confronted with an error:
fix vprof all ave/spatial 1000 100 150000 x 0 0.025 z 0.2 0.025 vx vy vz fx fy fz density/mass title1 "" title2 "" title3 "" write_ts no file post/contour.dat std 100 200 post/contour_std.dat

The error message I got:
ERROR: Illegal fix ave/spatial command (../fix_ave_spatial.cpp:266)

When I removed the write_ts keyword it worked fine:
fix vprof all ave/spatial 1000 100 150000 x 0 0.025 z 0.2 0.025 vx vy vz fx fy fz density/mass title1 "" title2 "" title3 "" file post/contour.dat std 100 200 post/contour_std.dat

I don't know what triggers the error but I thought I might let you know.
Regards, J