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

Remove built-in ADC module #2737

Merged
merged 5 commits into from
Oct 20, 2022
Merged

Remove built-in ADC module #2737

merged 5 commits into from
Oct 20, 2022

Conversation

maxscheurer
Copy link
Contributor

@maxscheurer maxscheurer commented Oct 5, 2022

Description

This PR removes Psi's internal ADC module, so that all ADC calculations are run through adcc from now on.
Closes #1033.

User API & Changelog headlines

Dev notes & details

  • remove built-in ADC code
  • update proc.py
  • update docs

Questions

  • Question1

Checklist

Status

  • Ready for review
  • Ready for merge

@loriab
Copy link
Member

loriab commented Oct 5, 2022

For methods (or methods in certain circumstances, say reference or conv/df) only available through an external add-on, do we want those opt-in? That is, certainly the external must be (1) installed and detectable. But do we also want to (2) require the user to set qc_module=mrcc|adcc|chemps2 ? CheMPS2 has a long history of not requiring (2). ADCC has a shorter history of being the preferred backend and automatic choice, if present. I just switched MRCC syntax in #2731 to yes require (2). That was in keeping with the user opt-ing in via energy("mrccsd").

I can go either way, and I guess I'm now leaning toward not requiring (2) and adjusting MRCC accordingly. But it seems like something to discuss and settle on a consistent treatment.

@maxscheurer
Copy link
Contributor Author

I think in the case of ADC, it makes little sense to require an explicit qc_module keyword as of now. In my opinion, it would just create another hurdle for users, not having an actual choice in that case. I cannot say much about a policy for the other modules though 😄

@maxscheurer
Copy link
Contributor Author

@loriab I removed the MEMORY option from the ADC section, but now some tests using fnocc are failing, because apparently, the option was only provided by the ADC part in read_options.cc... What should I do about this? adcc does not take any input on available memory, so where should the MEMORY option live from now on?

@loriab
Copy link
Member

loriab commented Oct 6, 2022

I removed the MEMORY option from the ADC section, but now some tests using fnocc are failing, because apparently, the option was only provided by the ADC part in read_options.cc... What should I do about this? adcc does not take any input on available memory, so where should the MEMORY option live from now on?

My best guess at why fnocc is using MEMORY is so that it can get more memory under default conditions (1gb instead of 0.5gb). Better handling would probably be to have a FNOCC_TRIPLES_FACTOR to manipulate input memory. I think comment out those MEMORY blocks in triples and lowmemory_triples, and we'll put up an issue. Those aren't running by default, and fnocc doesn't own MEMORY (as you discovered).

@JonathonMisiewicz
Copy link
Contributor

Please mark this PR as closing #1033.

@loriab loriab mentioned this pull request Oct 6, 2022
49 tasks
@JonathonMisiewicz
Copy link
Contributor

Will adc be moved to the attic?

@maxscheurer
Copy link
Contributor Author

Will adc be moved to the attic?

I can do that, sure 👍🏻

Copy link
Contributor

@JonathonMisiewicz JonathonMisiewicz left a comment

Choose a reason for hiding this comment

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

Hooray!

Remember to move the ADC code (including the equation PDF!) to the attic. @loriab will need to file that fnocc issue.

@loriab loriab added this to the Psi4 1.7 milestone Oct 10, 2022
@loriab loriab added cleanup For issues where the goal is to make Psi4 a little cleaner. adc For issues with the ADC module in Psi4 (not ADCC). labels Oct 10, 2022
Copy link
Member

@hokru hokru left a comment

Choose a reason for hiding this comment

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

lgtm

@maxscheurer maxscheurer merged commit 6b0030f into master Oct 20, 2022
@maxscheurer maxscheurer deleted the maxscheurer-patch-adcc branch October 25, 2022 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adc For issues with the ADC module in Psi4 (not ADCC). cleanup For issues where the goal is to make Psi4 a little cleaner.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Problems with ADC(2) in Psi4?
4 participants