output bond/local

Hi,

I’m using LAMMPS-15Feb10. I want to compute all bonded distances using the command “compute bond/local” and output them. I keep encountering this error message: ERROR: Dump local compute does not calculate local vector.

Here are the two commands that should let me do it:

compute 1 all bond/local dist eng
dump 2 all local 1000 bond.dat c_1

This should be an easy task but I just couldn’t figure it out. Did I make any mistake combing using these two commands?

Thanks,
KJ

The compute is calculating 2 quantities (dist, eng), so it produces
a 2-column array of output. Thus the dump needs to reference c_1[1]
or c_1[2].

Steve