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

GAPW meta-GGA bug fixing #1169

Merged
merged 1 commit into from Nov 16, 2020
Merged

GAPW meta-GGA bug fixing #1169

merged 1 commit into from Nov 16, 2020

Conversation

abussy
Copy link
Contributor

@abussy abussy commented Nov 16, 2020

This PR is an answer to issue #1116 and a follow-up to PR #1140, which respectively reported and tried to address a bug in GAPW with meta-GGA functionals. I was not able to find the exact issue in the code. Instead, I rewrote from scratch the 2 main steps involved, namely evaluating tau on the atomic grids and integrating the derived potential. The new code is slightly more brute force, as everything is explicitly put on the grid and no corner is cut.

Testing involved debug runs for the forces, on all combination of 6-311G** and def2-DZVP basis sets, TPSS and M06_L functionals and H2O, CO and C2H4 molecules. Most errors are at 0.01% or less (max error at 0.07%). Moreover, the OT method was used in combination with the CG minimzer and 3PNT LINESEARCH and the total energy was systematically decreasing at each CG step of the SCF procedure, which is sound behaviour.

src/xc/xc_atom.F Outdated Show resolved Hide resolved
@abussy abussy merged commit e18b1c5 into cp2k:master Nov 16, 2020
@alazzaro
Copy link
Member

Wow, this PR triggered an internal "catastrophic" error for the Intel compiler:

https://dashboard.cp2k.org/archive/psi-intel-psmp/commit_e18b1c5ca44b5f3bf3bf309180ce69b3151bd695.txt

@abussy
Copy link
Contributor Author

abussy commented Nov 17, 2020

I merged two PR simultaneously, and judging by the text, it seems that #1170 is responsible instead.

@alazzaro
Copy link
Member

You are too efficient 🥇

I think the reason is that the OpenMP region is too big. Maybe @hfp can take a look?
For the time being, I agree with your PR to remove that region...

@abussy
Copy link
Contributor Author

abussy commented Nov 17, 2020

@alazzaro @hfp I don't think it is necessary to have a look into it. This is not a critical part of my code in terms of performance.

@abussy abussy deleted the gapw_meta_corr branch March 29, 2023 12:50
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.

None yet

3 participants