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

Unify fcidump 1e and 0e integral spacings with 2e integrals #2277

Merged
merged 2 commits into from
Aug 16, 2021
Merged

Unify fcidump 1e and 0e integral spacings with 2e integrals #2277

merged 2 commits into from
Aug 16, 2021

Conversation

brianz98
Copy link
Contributor

@brianz98 brianz98 commented Aug 15, 2021

Description

The fcidump.py file writes out 2e integrals by calling fcidump_helper.cc, in the %28.20E%4d%4d%4d%4d (cpp) format, and in fcidump.py the additional 1- and 0- electron integrals are written in the {:29.20E} {:4d} {:4d} {:4d} {:4d} (Python) format. The whitespace in between the Python format string causes the 1/0e integrals fields to be 1 wider than the 2e integrals, causing problems in reading the file. E.g. in Fortran the 2e integrals can be read normally by READ(*,'(1X,G28.20E2,4I4)') Z,I,J,K,L, but will fail to read the 1/0e integrals properly.

Todos

  • Update fcidump.py
  • Update fcidump test outputs

Checklist

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.

good catch, thank you!

(for anyone else looking for the spacing changes, go to the end of the intdump.ref files.)

tests/fcidump/output.ref Outdated Show resolved Hide resolved
Copy link
Contributor

@robertodr robertodr left a comment

Choose a reason for hiding this comment

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

Good catch! The tests read in the FCIDUMP file without relying on the format and that's why we missed this.

@JonathonMisiewicz JonathonMisiewicz merged commit c74fc98 into psi4:master Aug 16, 2021
@loriab loriab added this to the Psi4 1.5 milestone Aug 16, 2021
@loriab loriab added compatibility external-interface For issues about interfaces with external programs: ADCC, CheMPS2, GDMA, MRCC... labels Aug 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility external-interface For issues about interfaces with external programs: ADCC, CheMPS2, GDMA, MRCC...
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants