fix balance: expected floating point parameter

Dear Lammps users,

I have an odd problem with fix balance. Using the input file below I get the error

ERROR: Expected floating point parameter in input script or data file (…/fix_balance.cpp:55)

If I delete the balance fix, no error is produced and the simulation runs (albeit without an integrator…).

The fix balance line is copied directly from the Lammps manual. The code is version: 5 Sep 2014.

Apologies if I’m missing something obvious…

James

INPUT:

units real
dimension 3
atom_style full
read_data sim.data
pair_style lj/cut/coul/long 14.0
kspace_style pppm 0.00001

pair_coeff 1 1 0.000000 0.000000
pair_coeff 1 2 0.000000 0.000000
pair_coeff 1 3 0.000000 0.000000
pair_coeff 1 4 0.000000 0.000000
pair_coeff 2 2 0.000000 0.000000
pair_coeff 2 3 0.000000 0.000000
pair_coeff 2 4 0.000000 0.000000
pair_coeff 3 3 0.000000 0.000000
pair_coeff 3 4 0.000000 0.000000
pair_coeff 4 4 0.000000 0.000000

neighbor 2.0 bin

timestep 2.

fix 2 all balance 1000 x 10 1.05

thermo_style custom step etotal
thermo 10

run 10000

OUTPUT:

Reading data file …
orthogonal box = (0 0 0) to (250 50 50)
1 by 1 by 1 MPI processor grid # [Running in parallel with 2x1x1 makes no difference either]
reading atoms …
1680 atoms
Finding 1-2 1-3 1-4 neighbors …
0 = max # of 1-2 neighbors
0 = max # of 1-3 neighbors
0 = max # of 1-4 neighbors
1 = max # of special neighbors
ERROR: Expected floating point parameter in input script or data file (…/fix_balance.cpp:55)

Dear Lammps users,

I have an odd problem with fix balance. Using the input file below I get the error

ERROR: Expected floating point parameter in input script or data file (…/fix_balance.cpp:55)

If I delete the balance fix, no error is produced and the simulation runs (albeit without an integrator…).
The fix balance line is copied directly from the Lammps manual. The code is version: 5 Sep 2014.

Your fix balance command is not consistent with its documentation. Please see: http://lammps.sandia.gov/doc/fix_balance.html

Axel