Add LibXC alias xc names in param.f90#130
Merged
awvwgk merged 1 commit intodftd3:mainfrom Dec 13, 2024
Merged
Conversation
Some functionals defined in get_method_id inside param.f90 have an alias in LibXC. In particular, these are: - b1b95 == b88b95 as in LibXC this is HYB_MGGA_XC_B88B95 - bhlyp == bhandhlyp as in LibXC this is HYB_GGA_XC_BHANDHLYP (assuming that bhlyp refers to the implementation with Becke 88 exchange instead of LDA exchage - see J. Chem. Phys. 159, 114116 (2023), DOI: 10.1063/5.0167763) - pbe0 == pbeh as in LibXC this is HYB_GGA_XC_PBEH These aliases have been added to be compatible with codes that use LibXC with automatic D3 parameter recognition
awvwgk
approved these changes
Dec 13, 2024
Member
awvwgk
left a comment
There was a problem hiding this comment.
Thanks for sharing. Looks good to me.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #130 +/- ##
=======================================
Coverage 67.07% 67.07%
=======================================
Files 34 34
Lines 4687 4687
Branches 1647 1647
=======================================
Hits 3144 3144
Misses 632 632
Partials 911 911 ☔ View full report in Codecov by Sentry. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I noticed that some of the functionals defined in
get_method_idinsideparam.f90have an alternative name in LibXC.In particular, these are:
I therefore added the aliases "b88b95", "bhandhlyp", and "pbeh" for "b1b95", "bhlyp", and "pbe0", respectively, so that the D3 automatic parameter recognition based on functional name could be used with LibXC for these functionals.