[lammps-users] Default setting of units in fix ave/spatial


According to the documentation of fix ave/spatial, the default units are units = lattice. However, the results I get using the default appear to be using units = box, and in fact the souce code fix_ave_spatial.cpp includes the line

scaleflag = BOX;

Am I right in thinking that the default is actually units = box?


You're right - the default is box. Other commands with a lattice/box option
use lattice as the default, so I probably change this at some point. To be
safe, just specify the units option explicitly in your scripts.