Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eigensolver not converged #979

Open
mfherbst opened this issue Jun 5, 2024 · 1 comment · May be fixed by #980
Open

Eigensolver not converged #979

mfherbst opened this issue Jun 5, 2024 · 1 comment · May be fixed by #980
Labels
bug Something isn't working

Comments

@mfherbst
Copy link
Member

mfherbst commented Jun 5, 2024

Since #964 is in I quite frequently get something like

┌ Warning: Eigensolver not converged
│   n_iter =
│    42-element Vector{Int64}:
│     16
│      7
│      4
│     14
│      ⋮
│     18
│      2
│     13
└ @ DFTK ~/.julia/packages/DFTK/Yozrw/src/scf/self_consistent_field.jl:76

for the first few iterations. I think this is because due to the ordering (involving a Reighleigh-Ritz) on an eigenpair the residual simply increases above the threshold again.

@antoine-levitt Any idea what to do ? It probably does not really matter in practice, so should we ignore it ? Or somehow modify how we check for converegence ?

@mfherbst mfherbst added the bug Something isn't working label Jun 5, 2024
@antoine-levitt
Copy link
Member

Hm this is annoying. I think what happens is that the LOBPCG detects the Nth eigenvalue as converged and the N+1th as not converged, but then switches them. It means that we return a non-converged eigenvector, which is breaking the promise. That sort business has always been a hack, we should just get rid of it, I'll try to see what I can do

@antoine-levitt antoine-levitt linked a pull request Jun 5, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants