-
Notifications
You must be signed in to change notification settings - Fork 31
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-CP2K protocol and workchain #312
Conversation
Thanks @hmhoseini . I have been out of the loop and am not quite sure what the purpose of the CP2K-SIRIUS build is. Was this implementation run separately from the base CP2K implementation for the PBE verification study? Or does this have some other purpose? I am asking to try and figure out whether this implementation should be added as merely another protocol Also, what is special about these pseudos? The look to be pseudos that also occur in the SSSP families. Is there a reason they cannot be used? If they have to be in JSON format for CP2K-SIRIUS to be able to use them, there is a upftojson tool written by the SIRIUS developers to make this possible. @yakutovicha @bosonie could you fill me in a bit on the context here? |
@sphuber |
@sphuber, indeed, I think this PR needs more work. The immediate change I would do is to remove all the pseudos and convert them to
The generator and the workflow differ very little from the original CP2K ones. IMO, SIRIUS should be implemented as another protocol with some minor changes to the original CP2K builder. |
@yakutovicha |
You can use |
I think this might have to be done in the |
I think this is a fair point. I can add an optional UpfData input to the CP2K calculation plugin 👍 |
@yakutovicha @hmhoseini Hi there. Sorry to come back to this, but we need to make a release next week. The paper is already accepted and we are only waiting the final format. Can we finish up this PR by Tuesday? Thanks and let me know if I can do anything from my side |
@bosonie, I need to adapt the CP2K plugin for the PR to work. Considering my current workload, Thursday looks more realistic. |
Ok, thanks @yakutovicha |
Hi @yakutovicha, what is the state of this PR? |
I started to work on it on Thu, but couldn't complete it then. Friday was off. So I am continuing today. |
@hmhoseini, which exact version of the pseudopotentials did you use? |
@yakutovicha |
For the information: the corresponding feature is implemented in the aiida-cp2k plugin and backported to aiida-cp2k-1.x. |
Looks like it is done now. I have a few minor points before we can conclude. @bosonie we named the @hmhoseini, could you please test the changes if they work fine for you as well? Especially, the part that is responsible for UKS calculations: # Magnetic calculation.
if spin_type == SpinType.NONE:
parameters['FORCE_EVAL']['DFT']['UKS'] = False
if magnetization_per_site is not None:
import warnings
warnings.warn('`magnetization_per_site` will be ignored as `spin_type` is set to SpinType.NONE')
elif spin_type == SpinType.COLLINEAR:
parameters['FORCE_EVAL']['DFT']['UKS'] = True
structure, magnetization_tags = tags_and_magnetization(structure, magnetization_per_site)
parameters['FORCE_EVAL']['DFT']['MULTIPLICITY'] = guess_multiplicity(structure, magnetization_per_site) |
@yakutovicha thanks a million! Really appreciate your effort. I will take care myself of the CLI problem (already PR open #315). However I have a suggestion. I would call the protocol |
74c423a
to
a5e6588
Compare
perfect, thanks!
Sure, done in e325cca |
@yakutovicha Could you specify the version of aiida-core and aiida-cp2k that work well for you? |
Yes. You can use aiida-core |
I tested the changes (few unaries and few oxides). Everything is fine except that spin-polarized calculation is not implemented for PW-DFT. That is, "UKS True" has no effect on SIRIUS PW-DFT calculations. |
Since it has no effect should we keep it as is, or disable that part for sirius protocol? |
I suggest to disable "SpinType.COLLINEAR" and to make "SpinType.NONE" the default for sirius protocol . |
Okay, since @hmhoseini do you mind testing it again really quick? Just to make sure there are no stupid problems. I guess we can then merge. |
I tested "verification-pbe-v1" and "verification-pbe-v1-sirius" protocols with "SpinType.COLLINEAR" and "SpinType.NONE" options. |
Great, I think we can merge it then. I am going to approve. I let @bosonie do the merge. |
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.
Thanks @hmhoseini @yakutovicha
protocol and workchain for SIRIUS-CP2K