-
Notifications
You must be signed in to change notification settings - Fork 363
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
[SIRIUS] libvdwxc functionality #2270
Conversation
src/input_cp2k_pwdft.F
Outdated
@@ -53,6 +54,13 @@ MODULE input_cp2k_pwdft | |||
|
|||
PUBLIC :: create_pwdft_section | |||
|
|||
#if defined(__LIBVDWXC) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think, these constants should be defined regardless of whether libvdwxc is present. We currently don't have a CI test for this, but I believe right now one can not build with SIRIUS and without libwdvxc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is possible to compile sirius without libvdwxc even with the toolchain. The reason is it is not a hard dependency so it is not enforced.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, the problem is that you are importing these constants in sirius_interface.F
regardless of whether libvdwxc is present or not. The simplest solution would be to have them always defined.
LGTM. |
ideally we need tests cases for this but I prefer to see this validated with a real calculation than just a dummy test showing convergence (Opening an issue will remind me to do it). I ran his input file and SIRIUS converged without any problem . Of course gold is easy. |
thanks. I can now ask the user to give it a spin. |
Add an extra option to support libvdwxc/sirius functionality in cp2k.