Skip to content

HP-DFT modules and regtests#4138

Merged
marci73 merged 16 commits intocp2k:masterfrom
cucinotta:master
May 15, 2025
Merged

HP-DFT modules and regtests#4138
marci73 merged 16 commits intocp2k:masterfrom
cucinotta:master

Conversation

@MaggieB092
Copy link
Contributor

This PR adds the modules for Hairy Probes (HP) DFT calculations (https://doi.org/10.1021/acs.jpclett.3c03615). HP-DFT is an efficient open-boundary formalism which combines the Hairy Probes (HP) formalism with DFT in the canonical ensemble. Thus, HP-DFT offers a computational efficiency comparable to standard DFT while allowing the introduction of different local Fermi levels in the system, which can be freely chosen.
The PR also includes the necessary files to perform regtests for HP-DFT calculations.

Copy link
Member

@oschuett oschuett left a comment

Choose a reason for hiding this comment

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

You can fix the precommit errors by running make pretty.


sum_fermi_fun_sol = probe(np)%alpha * fermi_fun_sol * sum_coeff_sol
sum_coeff_sol = probe(np)%alpha * sum_coeff_sol
f = ( sum_fermi_fun_sol + sum_fermi_fun ) / ( sum_coeff_sol + sum_coeff )
Copy link
Member

@oschuett oschuett Apr 14, 2025

Choose a reason for hiding this comment

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

My guess would be that the Floating-point exceptions are because sum_coeff_sol + sum_coeff is sometimes zero.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you!

@marci73 marci73 merged commit 61d4209 into cp2k:master May 15, 2025
36 checks passed
BelizSertcan pushed a commit to BelizSertcan/cp2k that referenced this pull request Nov 24, 2025
BelizSertcan pushed a commit to BelizSertcan/cp2k that referenced this pull request Feb 5, 2026
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