Skip to content

Add warning if improper ALGO is used for hybrid calculations#2298

Merged
mkhorton merged 6 commits intomaterialsproject:masterfrom
Andrew-S-Rosen:rosen-lhfcalc
Nov 23, 2021
Merged

Add warning if improper ALGO is used for hybrid calculations#2298
mkhorton merged 6 commits intomaterialsproject:masterfrom
Andrew-S-Rosen:rosen-lhfcalc

Conversation

@Andrew-S-Rosen
Copy link
Member

Per the VASP manual (https://www.vasp.at/wiki/index.php/LHFCALC), hybrid calculations should only be run with ALGO = All, Damped, or Normal (never Fast or VeryFast despite no clear error written in the output). This PR implements a BadInputSetWarning if LHFCALC = True and Algo is not one of the three supported options.

Algo should be Normal, All, or Damped per the VASP manual
@coveralls
Copy link

coveralls commented Nov 15, 2021

Coverage Status

Coverage decreased (-0.6%) to 83.116% when pulling e0f7d28 on arosen93:rosen-lhfcalc into 9276567 on materialsproject:master.

@mkhorton
Copy link
Member

Thanks @arosen93! Could you add a quick test?

@Andrew-S-Rosen
Copy link
Member Author

Andrew-S-Rosen commented Nov 22, 2021

@mkhorton, apologies about all these failed tests in my recent pymatgen PRs. I'm having trouble figuring out some of the nuances of pymatgen.vasp.io.sets. I'll ping you when they're done after I talk to someone in the group to learn more about what's going on in this part of pymatgen.

I guess defining it as a variable is needed
@Andrew-S-Rosen Andrew-S-Rosen marked this pull request as draft November 22, 2021 21:14
@Andrew-S-Rosen Andrew-S-Rosen marked this pull request as ready for review November 23, 2021 01:15
@Andrew-S-Rosen
Copy link
Member Author

Andrew-S-Rosen commented Nov 23, 2021

@mkhorton, the PRs are good to go now :) #2298, #2297, #2301 (thanks for the help with debugging the tests, @munrojm!!)

@mkhorton mkhorton merged commit cd8d952 into materialsproject:master Nov 23, 2021
@mkhorton
Copy link
Member

Thanks @arosen93 !

@Andrew-S-Rosen Andrew-S-Rosen deleted the rosen-lhfcalc branch November 23, 2021 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants