Skip to content

RI-HFXk| various improvements#4291

Merged
abussy merged 1 commit intocp2k:masterfrom
abussy:hfx_fix
Jul 21, 2025
Merged

RI-HFXk| various improvements#4291
abussy merged 1 commit intocp2k:masterfrom
abussy:hfx_fix

Conversation

@abussy
Copy link
Contributor

@abussy abussy commented Jul 14, 2025

This PR brings various improvements to the RI-HFXk method. These aim at increasing performance, reducing memory usage, and improving user experience.

Main changes are:

  • Additional 2 input keywords to help monitor resource usage and calculation progress
  • Better/more warnings in output file
  • Better screening in various places
  • Implementation of the MIX_CL_TRUNC potential for RI-HFX methods (including $\Gamma$-point)

Other minor optimizations were also implemented.

The MIX_CL_TRUNC potential was thoroughly tested against the 4-center HFX implementation, for energy, forces, and stress. Relevant regtests were added.

@hfp
Copy link
Member

hfp commented Jul 14, 2025

What do you think about https://github.com/cp2k/cp2k/blob/master/src/qs_tensors.F#L1820 along with https://github.com/cp2k/cp2k/blob/master/src/qs_tensors.F#L1904?

( Sorry for bothering you with this; just wanted a to hear your opinion since your PR touches qs_tensors.F )

@abussy
Copy link
Contributor Author

abussy commented Jul 14, 2025

You mean variable i being shared, whereas it should private? This has to be a bug. I'll change it along this PR

@abussy abussy force-pushed the hfx_fix branch 2 times, most recently from 8c808d0 to eae1ba7 Compare July 15, 2025 10:59
@hfp
Copy link
Member

hfp commented Jul 16, 2025

LGTM

@oschuett
Copy link
Member

Is this PR ready to be merged?

@abussy abussy merged commit 00020d3 into cp2k:master Jul 21, 2025
38 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.

3 participants