Unrecognised pair style command

LAMMPS (20 Nov 2019)
Reading data file …
orthogonal box = (-11.6336 -12.0336 -9.71848) to (71.3856 72.0246 100)
1 by 1 by 1 MPI processor grid
reading atoms …
24000 atoms
reading velocities …
24000 velocities
read_data CPU = 0.982767 secs
ERROR: Illegal pair_style command (src/pair_morse.cpp:159)
Last command: pair_style hybrid tersoff morse 4.046 smatb

There is no question here…

I am facing above error.How do I resolve the error?

First of all, you are using a very old version of LAMMPS. If you upgrade to the current version, you would get a more descriptive error message.

Most likely, not all pair styles that you are using in your pair style command are included in your LAMMPS binary.

1 Like