Guide · VASP · LAMMPS · 13 min read
How do I tell a bug in VASP or LAMMPS from my own mistake?
Checked against the docs · VASP wiki and LAMMPS manual, stable release 30Sep2026 update1 · Last checked 12 November 2026 · Spot a mistake? Tell us
Short answer
Assume your input first: both codes say most failures come from the setup, and an error that stops the run before it starts is almost always yours. Then find your exact version (the first lines of VASP's output, the first line of log.lammps), and check it against VASP's Known issues page and Changelog, or LAMMPS's GitHub releases and issues. If you still suspect a bug, shrink the case to a minimal example, try another version, and report it with the version and hardware.
Is it more likely to be a bug or my input?
Start with your input. The LAMMPS manual's page on common issues lists behavior that is often regarded as a bug and says that most of the time it comes down to how LAMMPS is implemented and parallelized; it adds that LAMMPS "cannot figure out your physics or numerical mistakes, like choosing too big a timestep, specifying erroneous force field coefficients, or putting 2 atoms on top of each other". VASP's Terminal output page says incorrect use of an INCAR tag makes VASP terminate immediately with an error; a run that stops in its first lines is telling you about your files.
The input mistakes the documentation warns about, and how to check each one before you submit, are in How do I avoid a failed VASP or LAMMPS run from bad settings?.
A bug is behavior that contradicts the documentation. The LAMMPS manual's bug-reporting page asks you to check the manual carefully to verify that what you see really conflicts with it. A run that does exactly what the documentation says, with settings you did not mean, is a mistake, however surprising.
But documented bugs exist, and some give wrong answers without an error. VASP's Known issues page lists, for example, an open bug where part of the PAW one-center exchange is wrong in noncollinear hybrid-functional and GW runs with spin-orbit coupling (entry dated 31 October 2026; first noticed in 6.6.0), and a bug, fixed in 6.6.0, where the default NBANDS was too small for negative magnetic moments, "often resulting in too few bands and possible crashes with misleading error messages" (22 August 2025; first noticed in 5.4.4). So checking is worth the few minutes.
What version am I running?
Everything below depends on it.
VASP prints its version, build date and executable type near the top of its standard output. The Terminal output page's examples:
vasp.6.4.3 19Mar24 (build Sep 03 2024 17:30:01) complex
vasp.6.5.0 16Dec24 (build Feb 28 2025 14:30:48) gamma-onlycomplex is printed by both the standard (vasp_std) and the noncollinear (vasp_ncl) executable; gamma-only by vasp_gam. On a cluster the standard output is the job's output file (on SLURM, slurm-<jobid>.out unless your script names another).
grep -m 1 "vasp\." slurm-123456.out(123456 stands for your job id.) Note the build too: whether it runs on GPUs (the header then says Offloading initialized), and which compiler and libraries it was built with, which whoever installed VASP can tell you. Several Known issues entries apply only to a GPU port, a compiler or a library.
LAMMPS prints its version, the release date, every time it runs, to the screen and to the log file, as the manual's version page says. The manual's debugging example shows the first line:
LAMMPS (19 Mar 2020)head -n 1 log.lammpsThe version page adds that LAMMPS also indicates when a binary was compiled from code changed after a release, from the development branch or the maintenance branch of the last stable release. lmp -h prints which packages and styles your executable includes (the Run_options page).
Read the manual for your version. The LAMMPS version page warns that the online manual describes the latest feature release by default; a menu at the bottom left switches to the stable release or the development branch, and the manual inside a downloaded tarball describes that version. The VASP wiki marks tags that are newer than some versions: for example, LPHON_DISPERSION is available only from VASP 6.3.2, and CHECKPOINT_FD from 6.6.0. A tag your version does not know is a version mismatch, not a bug. The wiki pages checked do not say what VASP prints for such a tag, so do not count on a warning: check the tag's page for the version it needs.
How do I check VASP's Known issues and Changelog?
The Known issues page is a table with an ID, the version in which each issue was fixed, the version in which it was first noticed, the date it was added, and a description; a color marks each as open, resolved or obsolete. The page itself says the list is incomplete, and asks you to read the description to see whether the issue has been fixed.
To use it:
- Search the page for the routine or file named in your message. Several entries quote the message VASP prints: an open bug with
ALGO = Allfrom random wavefunctions stops withinternal error in: rot.FandEDWAV: internal error, the gradient is not orthogonal(6 October 2026; first noticed in 6.1.0); a band-gap bug aborts withinternal error in: bandgap_tools.F ... eigenvalues are not sorted(30 July 2026; first noticed in 6.4.3, fixed in 6.6.0). - Search for the tags you set (
IBRION,LEPSILON,KPAR,LDAU…). Entries name the tags they affect: for example, a rare hang withKPARabove 1 (20 February 2026; first noticed in 6.1.0, partly fixed in 6.6.0). - Compare the versions. A version at or after the "fixed" one has the fix; an entry without a fixed version is still open. "First noticed" is when the bug was noticed, which is not necessarily the first version that has it.
- Use the workaround the entry gives, or a version that has the fix.
The Changelog lists each release's new features, improvements and bug fixes, newest first (6.6.1 is the latest it lists). Read the BUGFIX lines of the releases after yours: a fix there means your version may have the bug. The ZBRENT fatal error is an example: the 6.6.0 Changelog lists a fix to how the conjugate-gradient relaxer (IBRION = 2) determined its bracketing interval; see What does the ZBRENT error mean?
Some issues belong to the build, not your input. The Known issues page lists, for example, code that does not run because one compiler over-optimizes the symmetry routine SGRGEN (10 April 2024; VASP 6.4.2 built with AOCC 4.0 or later without OpenMP, fixed in 6.5.0), and nudged-elastic-band runs that give wrong results if libMBD was compiled with ScaLAPACK or MPI (18 November 2025; first noticed in 6.4.3). These are for whoever built VASP on your cluster. The Validation tests page describes the test suite that ships with every release since VASP 6.1.0 (make test, about 1.5 hours on 4 cores for the fast set); it is how an installation is checked.
How do I check for a LAMMPS bug?
LAMMPS has no Known issues page. Its manual's bug-reporting page lists what to check, in this order:
- The GitHub Releases page, to see whether the bug was fixed in a release.
- Whether the problem still happens with the latest development version.
- The manual: does the behavior really conflict with the documentation?
- The GitHub Issues page: is it reported already, and is it still open?
- The GitHub Pull Requests page: is a fix pending?
- The LAMMPS forum at MatSci: has it been discussed?
Knowing how LAMMPS releases work helps with step 1. The version page: feature releases come every 4 to 8 weeks, with release notes on GitHub; a stable release about once a year; and between stable releases, updates (tagged like stable_1May2014_update1) that collect bug fixes back-ported from development, with no new features. So a fix may reach the stable line in an update before the next stable release.
What points to my own mistake?
An error before the run starts. The LAMMPS common-issues page: most errors are found while LAMMPS reads the commands, others at the start of the run, and a few (lost atoms, a bond stretched too far) only in the middle of it. LAMMPS usually prints the last input command it was processing, and error messages give the source file and line (ERROR: Illegal velocity command (velocity.cpp:78), the manual's example). In VASP, a box of E's ending in I REFUSE TO CONTINUE WITH THIS SICK JOB ... BYE!!! names the tag it could not read.
"Invalid … style" in LAMMPS. The common-issues page: you mistyped the style name, or it belongs to an optional package not compiled into your executable. Check with lmp -h. That is your build or your typo, not a bug; see How do I install or compile LAMMPS?
Wild numbers. The common-issues page: wild thermodynamic values or NaN mean something is wrong with your simulation, typically invalid physics or numerics; print thermo output every step and visualize the atoms. What does "Lost atoms" mean? covers the most common case.
Different runs that disagree slightly. The same page: two LAMMPS runs on different machines or numbers of processors that do not give exactly the same answer is typically not a bug. Round-off makes trajectories diverge within a few hundred or thousand steps; the averages (energy, temperature) should still agree. The velocity command and fix langevin can also give different random numbers on different processor counts.
A warning you read past. The LAMMPS page says not to ignore warnings you do not understand; VASP's Terminal output page says a small oversight can lead to plausible but incorrect results, and asks you to check the output for warnings after every run.
What points to a bug?
A crash or hang with no error message, in LAMMPS, "could be a bug", the common-issues page says. First rule out buffering: the error-details page explains that in parallel runs a message may sit in an output buffer when LAMMPS is aborted, and the -nb (or -nonbuf) flag turns the buffering off so the message appears. Do not leave it on for production runs; the manual says it costs performance.
A segmentation fault, in LAMMPS, is likely a bug, the error-details page says, but not always: it can also follow from too aggressive settings, because LAMMPS skips checks on time-critical code. The debugging page shows how to find where it happens.
A Known issues entry or release note that matches your version, the tags you use and your build.
A failure that follows the version or the build, not the input. If the same small input fails with one version or build and runs with another, the code is the difference.
How do I test a suspected bug?
Make a minimal reproducible example. The VASP wiki's Minimal reproducible example page, in three steps: remove every preparatory and post-processing step and every INCAR tag that is not needed to show the problem (perhaps a smaller structure); choose cheaper settings that still show it (a lower ENCUT, a coarser k-mesh, a lower PREC); and keep all the files needed to run it (job script, inputs), the main outputs (standard output, OUTCAR) and, if the problem appears only on some hardware, versions or toolchains, that information too. The LAMMPS bug page asks for the same: the smallest number of atoms, the fewest processors and the simplest input that shows the problem, ideally without binary restart files.
Shrinking the case often answers the question. The LAMMPS error-details page recommends a small test system for any debugging; it runs faster and is easier to look at. The bug page asks you to identify which command, or combination of commands, causes the problem: if it disappears when you remove one, that is where to look.
Where do I report it?
- VASP: the bug-report section of the VASP forum, which the wiki's Welcome page names; you need to be a registered VASP user to get a forum account. Attach the minimal example.
- LAMMPS: a new issue on the LAMMPS GitHub Issues page, using its template, or a post in the development category of the LAMMPS forum at MatSci, which the manual says can answer faster, especially when the "bug" turns out to be expected behavior.
What do people mix up?
| Mix-up | What you would see | What to do |
|---|---|---|
| Calling a run that does what the manual says a bug | Results you did not expect, no conflict with the documentation | Reread the page for each command or tag; LAMMPS applies the syntax strictly as documented. |
| Reading the online LAMMPS manual for a different version | A keyword or behavior your executable does not have | Switch the manual to the stable release, or read the docs in your tarball. |
| Checking Known issues without knowing your version | An entry that may or may not apply | Find the version line first, then compare with "first noticed" and "fixed". |
| Treating a missing package as a bug | Invalid … style | Check lmp -h; the style's package was not compiled in. |
| Treating small differences between parallel runs as a bug | Trajectories that diverge after a few thousand steps | Compare averages; the manual says this is round-off, not a bug. |
| Reading "no error message" as "no error" | A LAMMPS run that stops silently in parallel | Rerun with -nb to flush the message. |
| Taking the Known issues list as complete | No entry, so "not a bug" | The page says it is incomplete; check the Changelog and the forum too. |
| Blaming the physics for a build problem | The same failure whatever the input | Ask whoever built the code; check the build-related entries and the test suite. |
Verlet keeps the version with the run: Export for paper names the VASP or LAMMPS version it finds in the run's output (or the module the job loaded), or marks it as not recorded. In the Inspector, Explain this error sends the job log's last lines to Ask Verlet and shows you the exact text before anything is sent. Verlet does not check your version against the Known issues page or the LAMMPS releases; do that as above. Everything above works without it.