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

Add support for PseudoDojo PAW pseudos (alternative) #42

Merged
merged 4 commits into from
Jan 13, 2021

Conversation

zooks97
Copy link
Contributor

@zooks97 zooks97 commented Dec 17, 2020

Fixes #40
Alternative to PR #41

The range of recommended cutoffs in the PseudoDojo PAW families is relatively small (min 10, 10, 10; max 20, 20, 25 for low, normal, high stringency). So, it seems fairly reasonable to replace placeholder cutoff values (i.e. -1) with the maximum for the corresponding stringency. This is an alternative solution to dropping the pseudos entirely, as proposed in #41

@zooks97
Copy link
Contributor Author

zooks97 commented Dec 17, 2020

An even safer alternative suggested by @sponce24 is to set the unknown cutoffs to 1.5 ~ 2.0 times the maximum in the same stringency.

Copy link
Contributor

@sphuber sphuber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @zooks97 . I am happy with the concept, just some suggestions on implementation and comments/messaging

aiida_pseudo/cli/install.py Outdated Show resolved Hide resolved
aiida_pseudo/cli/install.py Outdated Show resolved Hide resolved
aiida_pseudo/cli/install.py Outdated Show resolved Hide resolved
max_cutoff_rho = max([str_cutoffs[element]['cutoff_rho'] for element in str_cutoffs])
for element, cutoff in str_cutoffs.items():
if cutoff['cutoff_wfc'] <= 0:
cutoffs[stringency][element]['cutoff_wfc'] = max_cutoff_wfc * 2.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we are already taking the maximum of the stringency set, should we really even double it? Can't find your comment anymore about what the PD team recommended about cutoffs for lanthanides. I have the feeling this is a bit excessive. If we give a warning that they are not officially tested, maybe just using the max itself should be fine?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They recommended 20 Ha as a rule of thumb, but they also mentioned that the density (PAW double grid) cutoff may need to be larger than what is generally required. As the elements that are missing are only the Lanthanides, it could make sense to do something "too strict" to be safe.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, but what is the max cutoff in the strict set? Is that more or less than 20 Ha. Because it if iis more, and we times two that, it will be a lot more than 20 Ha, so maybe a bit excessive.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the max in the strict set is 25, so I agree that 2.0 would be a bit extreme. Perhaps a lower multiplier would be better.

aiida_pseudo/cli/install.py Outdated Show resolved Hide resolved
@zooks97
Copy link
Contributor Author

zooks97 commented Dec 18, 2020

Note: I've changed the dual for the norm-conserving families to 4.0 after a conversation with @sponce24 . The previous value of 8.0 was unnecessary and wasteful.

@zooks97
Copy link
Contributor Author

zooks97 commented Jan 7, 2021

@sphuber I can't remember which solution we decided upon in the end, and Marnik has run into an issue with the incorrect dual value which was fixed in this pull. Could we think about merging one of the solutions?

@sphuber
Copy link
Contributor

sphuber commented Jan 7, 2021

We agreed on this variant which indeed already fixes the dual factor. The only thing remaining was the behavior for setting recommended cutoffs for those that don't have one. I thought that twice the max may be a bit much (see the only remaining open comment). Should we set the factor to 1.5 ? If you agree and update, then I will merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Find method to fill in missing PseudoDojo PAW cutoffs or drop support?
2 participants