issue with fix ave/spatial

Dear All,

I am using LAMMPS (28 Mar 2012) build

fix 1 all ave/spatial 10 100 1000 y lower 10.0 c_stN11[2] units box

I want to get output of one bin using:

variable strD1 equal f_1[4][6]

fix print_2 all print 1000 “${strD1}” file temp.txt

However, there is error:

ERROR: Variable formula fix array is accessed out-of-range

What could be the problem?

Many thanks,

Rajib

Dear All,

I am using LAMMPS (28 Mar 2012) build

                         fix 1 all ave/spatial 10 100 1000 y lower 10\.0

c_stN11[2] units box

I want to get output of one bin using:

                        variable strD1 equal f\_1\[4\]\[6\]

                        fix print\_2 all print 1000 "$\{strD1\}" file

temp.txt

However, there is error:

                         ERROR: Variable formula fix array is accessed

out-of-range

What could be the problem?

that you are trying to access an array element that doesn't exist?

if you want more specific help, you have to provide more details,
best a small but working input.

axel.

The fix ave/spatial output array doesn't have 6 columns for
your command. You probably mixed up the row and column indices
in your variable def.

Steve

Thanks Axel and Steve. This is sorted out. I mixed-up row and columns.

Thanks for your help.