Error · VASP · 6 min read
WARNING: Sub-Space-Matrix is not hermitian in DAV
WARNING: Sub-Space-Matrix is not hermitian in DAV 10
1.793901674087011E-005That is the warning as a user posted it on the VASP forum in February 2021, in the middle of a job's electronic steps; the number on the first line is the electronic step, and the layout of the numbers differs between posts. In that job, as in several others posted on the forum, the warning came back over a few steps and the run then stopped with Error EDDDAV: Call to ZHEGV failed.
Checked against the docs · VASP wiki and VASP forum · Last checked 12 November 2026 · Spot a mistake? Tell us
Short answer
VASP's default Davidson solver for the electrons found that a small matrix it builds is not hermitian, as it should be; it warns and goes on, but the run often ends soon after with "Error EDDDAV: Call to ZHEGV failed". The VASP team's first suspect is the structure (an unreasonable starting geometry or relaxation step); then try ALGO = All.
What does this warning 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 uses the blocked-Davidson algorithm, and its steps are the lines labeled DAV: in the output. In each, VASP 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 warning's name points to the small matrix of that step, the sub-space matrix.
That matrix should be hermitian (equal to its own conjugate transpose), and the warning's name says it is not. Neither the wiki nor the VASP team's answers say what the number printed under it means. The diagonalization step, done by the LAPACK routine ZHEGV, expects a hermitian problem; the forum's administrator described ZHEGV in 2005 as a routine for "a complex generalized Hermitian definite eigenproblem", in a thread about this warning. When that step fails, VASP stops with the EDDDAV error.
It is a warning, so VASP carries on. The wiki does not discuss it, and neither it nor the VASP team's answers say whether a run that prints it a few times and then converges normally can be trusted; if you are unsure, rerun with the fixes below and compare the results.
What usually causes it?
The VASP team's answers on the forum name these causes:
- An unreasonable geometry. The forum's administrator, in 2005: "If the problem occurs during relaxation of the ions, the most probable reason for the error is that the system has relaxed to a pathologic geometry." A 2006 answer splits it in two: the input geometry was not reasonable (the problem appears at the very first ionic step), or the last ionic relaxation step led to an unreasonable geometry.
- The maths library. The same 2006 answer: if the error shows up in all your calculations, the LAPACK library VASP was built with may not have been installed properly.
- An electronic loop in trouble. In 2024, for a relaxation that kept printing the warning, a VASP moderator suggested
ALGO = All, "usually the most reliable algorithm when it comes to convergence issues", and pointed to the wiki's troubleshooting page.
What should I try, in order?
- Find when it starts. If the warning appears in the first ionic step, suspect the starting structure; if it appears later in a relaxation, compare the last structures (
XDATCARholds every ionic step) with the first, as the 2006 answer suggests. - Check the geometry. Look at the interatomic distances (in
OUTCAR, or in a viewer) for atoms that are too close. - In a relaxation, take smaller steps. The 2005 answer: decrease
POTIMto avoid too large steps from one ionic configuration to the next ("0.1 seems a reasonable value in most of these cases") and/or tryIBRION = 1; the 2006 answer adds switching to a different relaxation algorithm. The default for relaxations isPOTIM = 0.5. - Switch the electronic algorithm to
ALGO = All, as the 2024 answer suggests; the wiki'sALGOpage calls it the appropriate choice "for magnetic systems and systems whereALGO= Normal failed", withISEARCH = 1. Started from scratch, it still begins with a few Davidson steps (NELMDL), so it may not avoid a warning in the very first steps. 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; its workaround is to converge withALGO = Normalfirst and restart fromWAVECAR. - Work through the wiki's troubleshooting list: a minimal
INCARwith fewer k-points and a lowerENCUT, thenISMEAR,NBANDSandALGOin turn. - If it appears in every calculation, rule out the build. Ask whoever maintains VASP on your cluster to check the LAPACK library it was built with.
Verlet recognizes this warning 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; everything on this page works without it.