problem using compute chunk/atom

Dear Lammps users,

When using compute chunk/atom command, I found if I set the “bound” value in x y z dimension each, like:
bound x 4 12 y 4 12 z 4 12 units box
it will give me an error as “Illegal compute chunk/atom command (…/compute_chunk_atom.cpp:227)”

I checked the source code and it seems it only allows to define bound in only one dimension. I tried with “bound x 4 12 units box” and all work well. I’m not sure if this is the problem.

Thank you for your help!

Dear Lammps users,

When using compute chunk/atom command, I found if I set the "bound" value
in x y z dimension each, like:
bound x 4 12 y 4 12 z 4 12 units box
it will give me an error as "Illegal compute chunk/atom command
(../compute_chunk_atom.cpp:227)"

I checked the source code and it seems it only allows to define bound in
only one dimension. I tried with "bound x 4 12 units box" and all work
well. I'm not sure if this is the problem.

​that is not correct. you have not read the documentation correctly. it
says explicitly:

​ It can be used one or more times to limit the extent of bin coverage in a
specified dimension, i.e. to only bin a portion of the box.

thus for *each* limit, you have to use: bound <dim> <lo> <hi>

axel