Add support for mGGA, SAP guess, orbital rotation gradient, DIIS mixer#88
Add support for mGGA, SAP guess, orbital rotation gradient, DIIS mixer#88alexmaryewski wants to merge 28 commits intodftbplus:mainfrom
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. |
|
Just a quick remark on this PR. As far as I can see, it contains a lot of different not necessarily strictly related changes. That is fine for a draft PR. But they should go into individual PRs at the very end before being merged into the main code. |
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.