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

Add LibXC alias xc names in param.f90 #130

Merged
merged 1 commit into from
Dec 13, 2024
Merged

Conversation

jamesagreen
Copy link
Contributor

I noticed that some of the functionals defined in get_method_id inside param.f90 have an alternative name in LibXC.

In particular, these are:

  • b1b95 = HYB_MGGA_XC_B88B95
  • bhlyp = 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. But please correct me if I am wrong, if it is the other way around then it would instead be HYB_GGA_XC_BHANDH)
  • pbe0 = HYB_GGA_XC_PBEH

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.

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
Copy link
Member

@awvwgk awvwgk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for sharing. Looks good to me.

Copy link

codecov bot commented Dec 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.07%. Comparing base (5f45fe8) to head (3daa864).
Report is 1 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

@awvwgk awvwgk merged commit 2e4f3dd into dftd3:main Dec 13, 2024
26 checks passed
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.

2 participants