-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add support for mGGA, SAP guess, orbital rotation gradient, DIIS mixer #88
base: main
Are you sure you want to change the base?
Conversation
Additional thoughts supplementing alexmaryewski#1:
To do:
|
Style guide compliance and minor changes
Replying to @vanderhe points:
Speaking of SAP: would you prefer it to be read dynamically from a data file? Regression tests will be added as soon as I confirm that the two-centre part works as intended. |
My bad, sorry. |
Regarding the B3LYP testcase: |
@alexmaryewski I would expect the unoccupied part of the eigenspectrum to be numerically unstable, hence suggest to restrict the comparison to the occupied states only. |
@vanderhe, thanks for suggestion. I just updated the subroutine to check eigenvalue difference only for the occupied part of the spectrum. This does solve the problem of convergence, yet does not fix the B3LYP case. |
@alexmaryewski Coming back to the convergence of the MGGAs: I think we should plot the Thomas-Fermi and SAP potential for one of the pathological cases (e.g. spin-pol. H). There must be some qualitative feature that the SCF iterations cannot restore (?), especially if we consider that SAP also performs well for the compressed runs. |
This PR contains multiple features that had to be implemented simultaneously in order to make mGGA work.
These include:
All tests except B3LYP pass: in the latter, N-N and C-N comparison fails; this requires attention from a knowledgeable person.
Additional thanks go to @vanderhe for helping with stylistic issues.