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

Arkane: add check for iop(2/9=2000) in Gaussian load geometry #2758

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sevyharris
Copy link
Contributor

Motivation or Problem

By default, Gaussian only prints Cartesians in the input orientation for small cases. Add a check for the IOP(2/9=2000) keyword so users don't get tripped up like I did here: #2757 with coordinates that don't match the Hessian.

Description of Changes

I added a check for the IOP(2/9=2000 keyword) when loading the geometry. If the molecule has 14+ atoms (this seems to be the threshold according to my experiments), this will raise a LogError if the keyword hasn't been specified.

Testing

I tested this using one Gaussian logfile that has the IOP and one that doesn't.
conformer_0002_iop.log
conformer_0002_no_iop.log

@sevyharris sevyharris linked an issue Feb 7, 2025 that may be closed by this pull request
Comment on lines 172 to 177
iop2_9_equals_2000 = False
with open(self.path, 'r') as f:
line = f.readline()
while line != '':
if '2/9=2000' in line:
iop2_9_equals_2000 = True
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the wrong place in the code for the check. It isn't about the Cartesian coordinates-- it's the fact that the Hessian isn't consistent with those Cartesian coordinates, so move this to the load_force_matrix function

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.

Projecting out rotors in Arkane leads to zero frequency
1 participant