fix ave/spatial runs with no input values

Hello all,

I’ve randomly noticed a curious thing: fix ave/spatial can take no input values and work without a warning.

The following command is recognized and produces an output file:
fix density all ave/spatial 10 10 100 x lower 0.02 units reduced file density.txt

A check that nvalues > 0 would be useful.

Regards,

Vasily

Why not add it then?

Best,
Oleg

22:21, 17 декабря 2014 г., “Василий Писарев” <pisarevvv@…24…>:

2014-12-17 22:44 GMT+03:00 Oleg Sergeev <[email protected]...>:

Why not add it then?

The attached patch seems to work.

Regards,
Vasily

ave_spatial.patch (286 Bytes)

Good catch - will be in the next patch - thanks.

Steve