Error · LAMMPS · 6 min read

ERROR on proc P: Bond atoms N M missing on proc P at step S

Example
ERROR on proc 3: Bond atoms 1207 1208 missing on proc 3 at step 52000
For more information see https://docs.lammps.org/err0005 (src/ntopo_bond_all.cpp:59)

The numbers are an example: the processor that could not find the atom, the two atom IDs of the bond, and the step. 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, and the file and line at its end vary. 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.

Angles have the same error with three atom IDs (Angle atoms N M K missing on proc P at step S); the manual's heading for this error also covers dihedrals, impropers, cmap and shake. A related error, Bond atom missing in image check or Bond atom missing in box size check, comes from the same cause.

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 · Last checked 12 November 2026 · Spot a mistake? Tell us

Short answer

One processor could not find the second atom of a bond, because the two bonded atoms ended up farther apart than the distance processors share atoms over. First check whether the dynamics blew up (treat it like lost atoms: minimize, shorter time step); if the bonds are only long, raise the communication cutoff with comm_modify cutoff.

What does this error mean?

On several processors, LAMMPS cuts the box into subdomains, one per MPI process. Each process also keeps copies of the atoms close outside its piece, called ghost atoms, so it can compute forces across the border. How far out it collects them is the communication cutoff; by default it equals the pair cutoff plus the neighbor skin (the extra margin set with neighbor).

To compute a bond, a process needs both atoms, its own or as ghosts. The manual explains the error: the second atom of a bond (or the third or fourth of an angle, dihedral or improper) is missing on that step and processor, typically because the two bonded atoms have become too far apart compared with the communication cutoff.

What usually causes it?

  • Dynamics that blew up. The manual warns that missing bond atoms may mean the atoms "blow apart"; then a longer communication cutoff will not help, and the cure is the one for fast-moving atoms (see Lost atoms).
  • A communication cutoff too short for the bonds. With a small pair cutoff (a repulsive-only Lennard-Jones, for example) or no pair style at all, the default distance may not reach across a stretched bond. The manual adds that LAMMPS estimates a cutoff from the equilibrium bond length, which may still fall short when soft bonds stretch far.
  • Neighbor lists rebuilt too rarely. The image-check and box-size-check variants are, in the manual's words, usually caused by atoms moving too fast, a communication cutoff that is too small, or waiting too long between updates.
  • Molecules that are meant to leave, for example through an open boundary or fix evaporate, so one atom of a bond is gone before the other.

Like lost atoms, this error often appears only in parallel: the manual explains that with one process there is no domain decomposition and every atom is reachable, so the symptom hides. The comm_modify page adds a trap: with one processor in a periodic direction (a serial run, for example), LAMMPS may "find" the partner atom on the far side of the box, which typically leads to bad dynamics instead of an error.

What should I try, in order?

  1. Check whether the run went unstable. Look at the thermo output before the error: a temperature or energy shooting up, or a "Lost atoms" message, means the dynamics failed. Fix that first: minimize before the dynamics, shorten the time step, remove close contacts (Lost atoms lists the steps).

  2. Use conservative neighbor settings. The manual's advice is to use very conservative neighbor list settings; the defaults are neigh_modify delay 0 every 1 check yes, so if you raised delay or every, put them back. The manual warns that rebuilding the lists less often has diminishing returns and increasing risks.

  3. Raise the communication cutoff if the bonds really are long. comm_modify cutoff sets the distance (in your distance units); it only has an effect when it is larger than the pair cutoff plus the skin, and a smaller value is ignored with a warning:

    Example
    comm_modify cutoff 12.0

    The value is an example. The comm_modify page says how long it must be: with newton bond off, the largest distance between any two atoms of a bond, angle or dihedral (atoms 1 and 4 of a dihedral, for example); with newton bond on, the largest distance from the central atom to any other (atoms 2 and 4 of a dihedral). The manual warns that setting it too large wastes CPU time and memory, and LAMMPS prints warnings then.

  4. Only if bonded atoms are meant to leave: thermo_modify lost/bond warn turns the error into a warning, and thermo_modify lost/bond ignore turns it off; either way LAMMPS skips the computation of the missing bond (or angle, dihedral and so on). By default it is a fatal error.

In Verlet, Monitor shows the latest lines of the job log while the job runs and the whole log under Job log, so the message and the thermo output before it are in one place, 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 line such as comm_modify cutoff stays in; everything on this page works without it.