Invalid pair style foe colloid potential

dear all,

I have been trying to run the example named in.colloid in the lammps package, howerver, there is always an ERROR: Invalid pair style(force.cpp:168).

my lammps vession is :lammps-11Jul13.

I have compiled the colloid package as the manual says, it didn’t work.

What can I do to solve this problem?

Below is the code which I didn’t change anything:

colloid potential

pair_style colloid 12.5
pair_coeff 1 1 1.0 1.0 5.0 5.0 12.5
pair_coeff 1 2 5.0 1.0 5.0 0.0 7.0
pair_coeff 2 2 10.0 1.0 0.0 0.0 2.5

fix 1 all npt temp 2.0 2.0 1.0 iso 0.0 1.0 10.0 drag 1.0 &
mtk no pchain 0 tchain 1
fix 2 all enforce2d

#dump 1 all atom 1000 dump.colloid

#dump 1 all image 1000 image.*.jpg type type &

zoom 1.5 center d 0.5 0.5 0.5

#dump_modify 1 pad 5 adiam 1 5.0 adiam 2 1.5

thermo_style custom step temp epair etotal press vol
thermo 1000

timestep 0.005

run 50000
Thank you so much in advance!
Best wishes!
ljp

dear all,

I have been trying to run the example named in.colloid in the lammps
package, howerver, there is always an ERROR: Invalid pair
style(force.cpp:168).

my lammps vession is :lammps-11Jul13.

I have compiled the colloid package as the manual says, it didn't work.

What can I do to solve this problem?

there are two possible options.
a) despite what you are saying, your executable does not contain the
colloid pair style. this can be easily verified by using the -h switch
as this will list all compiled in styles.

b) your text is using non-ascii characters (e.g. as blanks) which is
not supported.

axel.