expected integer parameter in input script or data file

Dear LAMMPS users ,

I have Ice and liquid water in my system this is my pair_style :

( I’d like to make difference between ice and liquid water so I choose different atom type for them )

pair_style hybrid &
lj/cut/tip4p/long/soft 1 2 1 1 0.125 1 0.5 10.0 10.0 10.0 &
lj/cut/tip4p/long/soft 3 4 2 2 0.125 1 0.5 10.0 10.0 10.0

this is part of my pair_coeff :

pair_coeff 2 2 lj/cut/tip4p/long/soft 0.0 1.0 1.0 # hydrogen
pair_coeff 4 4 lj/cut/tip4p/long/soft 0.0 1.0 1.0 # hydrogen
pair_coeff 1 2 lj/cut/tip4p/long/soft 0.0 1.0 0.0

I get this error : " Expected integer parameter in input script or data file "

Can you please let me know my mistake ?

Best Regards,
Saeed.

Can you give the full error message? Normally, the log file from lammps allows
you to know which line gave the error and from which source file the error
originates.

Hi .

This is the full error message : Expected integer parameter in input script or data file (…/pair_hybrid.cpp:343)

Thanks for your attention.

Best ,
Saeed.

you specify the same pair style twice in your pair_style command. then
you have to flag in pair_coeff which of the two a specific set of
coefficients refers to. your input doesn't, that is why your get the
error. please see the documentation for more details.