Error · LAMMPS · 5 min read

ERROR: Unrecognized pair style 'X' is part of the Y package which is not enabled in this LAMMPS binary

Example
ERROR: Unrecognized pair style 'pace' is part of the ML-PACE package which is not enabled in this LAMMPS binary.
For more information see https://docs.lammps.org/err0010 (src/force.cpp:239)

The style and package are an example (the pace pair style is part of the ML-PACE package). The wording is the one the LAMMPS source code puts together in the stable release of 30 Sep 2026; the second line points to the manual's own page on this error, and the file and line at its end change between versions. For most styles a line starting Last input line: follows, repeating the command LAMMPS was reading. The stable release of 29 Aug 2024 prints the same first line, followed by a Last command: line instead of the pointer to the manual.

The same message exists for every kind of style: Unrecognized fix style, bond style, angle style, dihedral style, improper style, kspace style and compute style. Its ending tells you which case you are in:

The message endsWhat it means
Unrecognized pair style 'X' and nothing moreLAMMPS does not know the name at all: usually a typo, or a style that is not part of the LAMMPS distribution.
... is part of the Y package which is not enabled in this LAMMPS binary.The style exists, but this executable was built without package Y.
... is part of the Y package, but seems to be missing because of a dependencyPackage Y is in the build, but the style also needs a style from another package that is not.

Checked against the docs · LAMMPS stable release 30 Sep 2026, Update 1 · Last checked 12 November 2026 · Spot a mistake? Tell us

Short answer

The LAMMPS you ran does not contain that style: either the name has a typo, or the style lives in an optional package your executable was built without. If the message names a package, use a LAMMPS build that includes it (another module, or your own build with that package enabled); lmp -h lists what a build contains.

What does this error mean?

LAMMPS is built from a core and optional packages: groups of files that add a set of features, such as force fields for molecular systems. Whoever compiles LAMMPS chooses which packages to include, so two LAMMPS executables, say two modules on the same cluster, can know different styles. A style is one variant of a command: pair_style eam/alloy, fix npt.

When your script names a style the running executable does not contain, LAMMPS stops with this error. The executable carries tables of every package and style in the distribution, so when the style belongs to a package it can name that package.

What usually causes it?

The manual lists these cases:

  • A typo or syntax error in the style name.
  • A build without the package. The command is right, but the executable was not compiled with the package that contains the style.
  • A package enabled but never rebuilt. A frequent oversight, the manual says, is enabling the package but forgetting to rebuild or install the executable.
  • A missing dependency. The package is included, but the style needs a style from another package that is missing; LAMMPS cannot tell which, so the style's page in the manual is the place to look.
  • Rarely, licensing or portability, which can keep a package out of public builds or out of a particular environment.

What should I try, in order?

  1. Read the end of the message (the table above). With no package named, check the spelling against the style's page in the manual.

  2. See what your executable contains. Run it with -h (or -help): it prints a help summary and every style compiled into that executable, and then exits (use the name of your own executable in place of lmp):

    Example
    lmp -h
  3. Check the style's "Restrictions" section in the manual. It names the package, and any requirement beyond it; the pace page, for example, says the style is part of the ML-PACE package and is only enabled if LAMMPS was built with that package.

  4. On a cluster, ask for a build with the package. The manual's advice: if you do not control the executable (a module on a cluster, for example), contact the people who maintain it.

  5. Or build LAMMPS yourself with the package. With CMake, add -D PKG_<NAME>=yes (the manual's examples are -D PKG_MANYBODY=yes and -D PKG_INTEL=yes); with the traditional make build, run make yes-<name> in src and then rebuild, since installing a package takes effect only after a rebuild. Some packages, ML-PACE among them, need extra steps that the manual's Build extras page lists. Install LAMMPS covers the rest.

In Verlet, Monitor shows the latest lines of the job log while the job runs and the whole log under Job log, so you can read the end of the message, and Explain this error in the Inspector shows you the exact text it would send before you send it. A script you edit by hand under Set up → Calculation → Script is written to in.lammps exactly as it stands; everything on this page works without it.