Error · VASP · 5 min read

WARNING in EDDRMM: call to ZHEGV failed

Example
WARNING in EDDRMM: call to ZHEGV failed, returncode =   6  3    197

That is the line as a user posted it on the VASP forum in May 2020, from VASP 5.4.1, where it appeared from the second ionic step of a relaxation onward. The numbers after returncode change from line to line, and a run can print this line many times (one 2005 post counts 18796 in a single ionic step).

Checked against the docs · VASP wiki and VASP forum · Last checked 12 November 2026 · Spot a mistake? Tell us

Short answer

It is a warning from the RMM-DIIS solver (ALGO = Fast or VeryFast): one small matrix step failed for one band, and VASP moves on. If the run still converges, VASP-team answers on the forum treat it as harmless; if it does not, check the geometry and switch to ALGO = Normal.

What does this warning mean?

VASP finds the electronic ground state by repeatedly improving the electron states (the bands). With ALGO = Fast or ALGO = VeryFast, it does much of this with RMM-DIIS (the residual-minimization method with direct inversion in the iterative subspace), which works on one band at a time; its steps are the lines labeled RMM: in the output. The wiki calls RMM-DIIS faster than the default Davidson solver "but less robust", and notes that VASP alternates it with a subspace rotation (a small diagonalization over all bands) and re-orthonormalizes the bands after it.

ZHEGV is the routine from the LAPACK maths library that solves the small generalized eigenvalue problems in these steps; the forum's administrator described it in 2005 as a routine for "a complex generalized Hermitian definite eigenproblem". The warning says that one such call, inside the RMM-DIIS solver (EDDRMM in the output), failed.

A post in a 2020 thread explains what VASP then does: the warning appears when RMM-DIIS is very close to machine accuracy for a band, and VASP simply stops updating that band and goes on to the next; the post calls it "just a warning (no error)", present in every version, VASP 6 included. A VASP moderator replied the next day that these messages were meant to be removed from the output. That explanation was posted under a user rank, not as an answer from the VASP team, and the moderator's reply confirms only the plan to remove the message; whether current versions still print it is not stated. So do not ignore the warning on that post's word alone: check in OSZICAR that the electronic steps around it still converge, as the first step below describes.

What usually causes it?

  • Nothing wrong, close to convergence. The 2020 explanation above: machine accuracy limits in RMM-DIIS. In that case the run converges and the warning can be ignored.
  • RMM-DIIS not being stable for the setup. The forum's administrator, in 2005, put this first.
  • An unreasonable geometry. The same 2005 answer: the input geometry was not reasonable (the warning appears at the very first ionic step), or the last relaxation step led to an unreasonable geometry.
  • The maths library. The same answer lists a LAPACK library that was not installed properly.
  • An old version. In 2020 a VASP moderator could not reproduce a user's warnings on VASP 5.4.1 with VASP 6.1.0, and suggested upgrading.

What should I try, in order?

  1. Check whether the run converges. Look in OSZICAR that every ionic step's electronic loop reached EDIFF before NELM, and, for a relaxation, that it reached EDIFFG before NSW steps ran out. If it did, the 2020 explanation says the warning is harmless.
  2. If it does not converge, switch the electronic algorithm. The 2005 answer suggests ALGO = Normal (blocked Davidson) or ALGO = Fast (Davidson first, then RMM-DIIS). The wiki's ALGO page calls Normal the robust default and VeryFast the least robust.
  3. Check the geometry. Look at the structure at the first ionic step in OUTCAR and at the later ones in XDATCAR, as the 2005 answer suggests. In a relaxation that went somewhere unreasonable, it suggests a different relaxation algorithm (IBRION) or a smaller first step (POTIM below its default of 0.5).
  4. Check the VASP version. If yours is old, ask whoever maintains VASP on your cluster whether a newer one is available; Tell a bug from a mistake covers how to check the Known issues page and the Changelog.

Monitor shows the job's log, where this line appears, and Explain this error, in the Inspector, gathers the log's last lines for Ask Verlet, showing you the exact text before anything is sent. Everything on this page works without it.

Updated
12 November 2026
Applies to
VASP 5.4 and 6.x
Source check
Checked against the docs, 12 November 2026

Where can I read more?

The VASP wiki:

The VASP forum:

What was this page checked against?

Checked against the VASP wiki and the VASP forum, 12 November 2026. Every statement about VASP was read against these pages (with the date each was last edited): RMM-DIIS (14 November 2023), ALGO (23 June 2026), Blocked-Davidson algorithm (14 November 2023), Electronic minimization (24 September 2026), Structure optimization (22 July 2026), POTIM (18 October 2024), EDIFFG (24 October 2025) and Known issues (12 November 2026, which does not list this warning). Forum posts are cited as forum posts, not as documentation: the administrator's answers of 22 April 2005 and 28 June 2005, moderators' answers of 9 June and 7 July 2020, and the explanation of 6 July 2020, posted under a user rank. The printed line is quoted from a user's post of 28 May 2020. Every link on this page was opened.

The wiki does not mention this warning, so whether the 2020 explanation is the VASP team's and still holds for current versions is worded cautiously, and it is with an expert reviewer.