Skip to content

Fix DF-NEVPT2 integral path selection - #3662

Open
RTChou67 wants to merge 1 commit into
pyscf:masterfrom
RTChou67:fix-df-nevpt2-memory-selection
Open

RTChou67 wants to merge 1 commit into
pyscf:masterfrom
RTChou67:fix-df-nevpt2-memory-selection

Conversation

@RTChou67

@RTChou67 RTChou67 commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fix DF-NEVPT2 integral path selection by correcting memory estimates and using the DF configuration from the CAS object.

Motivation and context

The previous implementation estimated integral memory using only occupied and active orbitals, compared it against memory already in use rather than the available budget, and accessed the DF configuration through the underlying SCF object.

This PR uses the full MO space for memory estimation, checks the available memory, and obtains with_df from the DF-CAS object. It also preserves the conventional integral fallback when the DF path cannot be selected.

How has this been tested?

  • All existing dfnevpt2 and nevpt2 tests passed.

Notes

ChatGPT (GPT-6.2) assisted with implementation and debugging.

Checklist

@jeanwsr

jeanwsr commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

@JangidBhavnesh could you take a look at this if you have a minute?

@JangidBhavnesh

Copy link
Copy Markdown
Contributor

Yeah, above changes looks good to me.

Thanks for the memory check related fix.

This branch has not been deployed

No deployments
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.

3 participants