Merged
Conversation
oschuett
reviewed
Apr 14, 2025
Member
oschuett
left a comment
There was a problem hiding this comment.
You can fix the precommit errors by running make pretty.
src/hairy_probes.F
Outdated
|
|
||
| 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 ) |
Member
There was a problem hiding this comment.
My guess would be that the Floating-point exceptions are because sum_coeff_sol + sum_coeff is sometimes zero.
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
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.
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.