Skip to content

Conversation

@JonathonMisiewicz
Copy link
Contributor

Dev notes & details

  • Documented several functions in DPD
  • Changed trivial return types in DPD
  • Closing a PSIO file now writes its cache'd file4 entries to disk. This closes Fatal Error: PSIO_ERROR: 21 (File not opened) #3274
  • Cache file4 deletion is separated from the preparatory work and written to its own function

Checklist

  • The test case in 3274 proceeds further than it was able to before.

Status

  • Ready for review
  • Ready for merge

Copy link
Member

@loriab loriab left a comment

Choose a reason for hiding this comment

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

wow, that bug was deep in the dpd cache manipulation


if ((this_entry == nullptr && File->incore) || (this_entry != nullptr && !File->incore) ||
(this_entry == nullptr && !File->incore))
if (this_entry == nullptr || !(File->incore))
Copy link
Member

Choose a reason for hiding this comment

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

nice simplification

@loriab loriab added this to the Psi4 1.10 milestone Mar 28, 2025
@JonathonMisiewicz JonathonMisiewicz added this pull request to the merge queue Mar 28, 2025
@JonathonMisiewicz
Copy link
Contributor Author

wow, that bug was deep in the dpd cache manipulation

Once you have a traceback and documentation on what the function calls are doing, it's straightforward to understand the problem. Hence why this PR includes so many function docstrings.

Merged via the queue into psi4:master with commit 4c07f4f Mar 28, 2025
6 checks passed
@JonathonMisiewicz JonathonMisiewicz deleted the cache_clean branch March 31, 2025 12:55
@loriab loriab mentioned this pull request Jan 8, 2025
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.

Fatal Error: PSIO_ERROR: 21 (File not opened)

3 participants