Error · LAMMPS · 5 min read

ERROR on proc P: Neighbor list overflow, boost neigh_modify one

Example
ERROR on proc 0: Neighbor list overflow, boost neigh_modify one
For more information see https://docs.lammps.org/err0036 (src/npair_bin.cpp:248)

The processor number is an example. The wording is the one the LAMMPS source code writes in the stable release of 30 Sep 2026; the second line points to the manual's own page on this error. The file at its end is the one that built the list (npair_bin.cpp for the default binned lists, other npair_*.cpp files for other neighbor styles), and the line changes between versions. 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.

If the processor is not 0, LAMMPS writes the message only to its screen output, not to log.lammps (the source code gives the other processors no log file). In a batch job, the screen output goes to the job's output file, slurm-<jobid>.out unless the script names another.

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

Short answer

One atom has more neighbors within the cutoff than LAMMPS has room for (neigh_modify one, 2000 by default). Before raising the limit, check that the density is real: wrong box dimensions or fractional coordinates in a data file pack atoms together. If it is real, raise one and page together.

What does this error mean?

A neighbor list holds, for each atom, the other atoms within its force cutoff plus the skin (a margin set with neighbor). To build these lists fast, LAMMPS stores them in large blocks of memory called pages, filling one page after another, instead of asking for memory atom by atom.

Two neigh_modify settings size this storage:

  • one: the most neighbors one atom may have (default 2000).
  • page: how many neighbor entries one page holds (default 100000).

When an atom has more neighbors than one allows, LAMMPS stops with this error.

What usually causes it?

  • A density or cutoff that really is high. The manual says the defaults suit most systems, and need changing for a very dense system or a very long cutoff (its example: about 15 Å or more with units real).
  • Atoms packed together by mistake. The manual warns that the overflow can be a symptom of another error that LAMMPS cannot readily detect. Its two frequent examples:
    • Wrong box dimensions. With periodic boundaries, LAMMPS wraps atoms back into the box, so a box that is too small holds the same atoms at a higher density.
    • Fractional coordinates in a data file. LAMMPS does not support them in data files; read as distances, they give a far higher density than intended.

The manual recommends checking the input especially when a tool converted it.

What should I try, in order?

  1. Check the structure before raising anything. Compare the box lines in the data file (xlo xhi, ylo yhi, zlo zhi, plus the tilt factors for a triclinic box) with the cell you meant, and make sure the atom coordinates are in distance units, not fractions of the cell. If a conversion tool wrote the file, check its output.

  2. Check that the density and cutoff are what you intend. The manual's advice is not to raise one blindly but to check that the combination of density and cutoff justifies it. If a smaller or shorter test run gets through, the statistics LAMMPS prints at the end of a run include Ave neighs/atom, the average number of neighbors per atom.

  3. If the density is real, raise one and page together, keeping their ratio: page must be at least 10 times one, and the manual recommends 50 to 100 times to avoid wasting memory (the defaults are 50 times). For example:

    Example
    neigh_modify one 4000 page 200000

    The values are an example, twice the defaults. The manual notes that neighbor list storage is typically the largest share of a LAMMPS run's memory, so raising these costs memory.

One warning from the neigh_modify page: LAMMPS can crash without an error message when one atom's neighbors exceed even the page size, because it checks the limits only after each atom's neighbors are found. That usually means something is very wrong with the setup (the spacing of the atoms, the cutoff or the skin).

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 message where LAMMPS wrote it, 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, so a neigh_modify line you add stays in; everything on this page works without it.