Error · VASP · 7 min read
Error EDDDAV: Call to ZHEGV failed
DAV: 1 0.981480160256E+04 0.98148E+04 -0.37255E+05 8496 0.985E+02
DAV: 2 0.508965503211E+03 -0.93058E+04 -0.90198E+04 11664 0.210E+02
Error EDDDAV: Call to ZHEGV failed. Returncode = 23 1 24That is the end of a job's output as a user posted it on the VASP forum in February 2020; the DAV: lines are the Davidson solver's electronic steps, and the job stopped at the error. The three numbers after Returncode differ from case to case (other posts show 12 2 16, 7 1 8 and 1 2 384); neither the wiki nor the VASP team's forum answers explain them.
Checked against the docs · VASP wiki and VASP forum · Last checked 12 November 2026 · Spot a mistake? Tell us
Short answer
The Davidson solver that VASP uses for the electrons by default (ALGO = Normal) failed in one of its small matrix steps, and the job stopped. The VASP team's usual first suspects are the structure (atoms too close, or a relaxation step that went somewhere unreasonable) and, for magnetic systems, a missing MAGMOM; then try another ALGO.
What does this error mean?
To find the electronic ground state, VASP repeatedly solves for the lowest-energy electron states (the bands) of the current Hamiltonian, the operator that gives each state's energy. By default (ALGO = Normal) it does this with the blocked-Davidson algorithm: it takes a block of bands, adds correction vectors, and finds the best combination within that small set, a step the wiki calls Rayleigh-Ritz optimization ("subspace rotation"). The equation being solved, as the wiki writes it, is H ψ = ε S ψ, with the orbitals kept orthonormal with respect to S, so each of these small steps is a generalized eigenvalue problem. The DAV: lines in the output are these Davidson steps.
ZHEGV is the routine from the LAPACK maths library that solves such a problem: the forum's administrator described it in 2005 as a routine that "computes all the eigenvalues, and optionally, the eigenvectors of a complex generalized Hermitian definite eigenproblem". The message says this step failed inside the Davidson solver (EDDDAV in the output), and VASP stopped. A VASP moderator summed it up in 2020 as "an error of the diagonalization routine". It often follows the warning Sub-Space-Matrix is not hermitian in DAV.
What usually causes it?
The wiki does not discuss this error. The VASP team's answers on the forum name these causes:
- A structure that is not reasonable. Two atoms too close in
POSCAR(moderator, 26 January 2021), or a relaxation step that moved two atoms too close (moderator, 10 February 2020). In a 2022 case the administrator found forces of about 45 eV/Å on two atoms after the first ionic step, from an N atom placed too close to a Ce atom; moving it slightly fixed the run. A 2006 answer from the forum's administrator lists the same two cases: an unreasonable input geometry (the error comes at the very first ionic step) or a relaxation step that led to one. - A magnetic system without
MAGMOM. WithISPIN = 2and noMAGMOM, every atom starts with a moment of 1 (the wiki's default,NIONS * 1.0). In a 2022 case on VASP 5.4.1, the administrator called the error "certainly misleading": VASP treated every ion as magnetic and could not find a meaningful solution. Newer releases, the same answer says, warn about this at the start of the job. - The maths library. If the error shows up in all your calculations, the 2006 answer points to the LAPACK library VASP was built with; a 2012 answer, unable to reproduce a user's error with the same input, said the same.
- A wrong tag. In a 2022 constrained-magnetism case, a moderator traced the error to a misspelled tag (
MCONSTRforM_CONSTR).
What should I try, in order?
- Look at the structure. Open
POSCAR(and, in a relaxation,CONTCARor the frames inXDATCAR) in a viewer and check the interatomic distances; inOUTCAR, look for very large forces after the first ionic step. If two atoms are too close, move them apart. In a relaxation, a 2020 answer suggests continuing from the structure of the second-to-last ionic step instead of the last, and the 2006 answer suggests another relaxation algorithm (IBRION) or a smaller first step (POTIM). - For a magnetic system, set
MAGMOMto a starting moment for each atom: nonzero for the magnetic atoms, zero for the rest. See Set up a magnetic calculation. - Switch the electronic algorithm. Moderators suggested trying another
ALGO(2020) andALGO = Fastwith a wider smearing (2024). The wiki'sALGOpage callsALGO = All(the same asALGO = Conjugate) the appropriate choice "for magnetic systems and systems whereALGO= Normal failed", with the improved line searchISEARCH = 1. Two notes from the wiki: started from scratch,ALGO = Allstill begins with a few Davidson steps (NELMDL), so it may not avoid a failure in the very first steps; and the Known issues page lists an open issue (6 October 2026, from VASP 6.1.0) in whichALGO = Allfrom random wavefunctions can stop withEDWAV: internal error, the gradient is not orthogonal, with the workaround of converging withALGO = Normalfirst and restarting fromWAVECAR. - Simplify the run to find the cause. The wiki's first troubleshooting step, which a moderator pointed to for this error in 2023: a minimal
INCAR, fewer k-points, a lowerENCUT,PREC = Normal; if that works, add tags back one at a time, checking each tag's spelling. - Check you have enough bands. The wiki's troubleshooting steps include raising
NBANDS: with iterative solvers, the highest bands converge slowest, and if they are occupied, convergence is likely to fail. Look inOUTCARthat the highest bands have zero occupation. The VASP team's answers about this error do not name too few bands as a cause, so this is the wiki's general advice for electronic convergence, not a known fix. - If it fails in every calculation, rule out the build. Ask whoever maintains VASP on your cluster to check the LAPACK library it was built with, as the 2006 and 2012 answers suggest.
Verlet recognizes this message in a job's output and names it among the problems that Explain this error, in the Inspector, gathers with the job log's last lines, showing you the exact text before anything is sent. Monitor shows the job's log, and pre-flight checks your structure before you submit; everything on this page works without it.