Skip to content

Commit

Permalink
Add LogError to raise LogError for unconverged gaussian log file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hao-Wei Pang committed Nov 4, 2019
1 parent a1f63f3 commit cc544b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arkane/gaussian.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,9 @@ def load_conformer(self, symmetry=None, spin_multiplicity=0, optical_isomers=Non
# Read the next line in the file
line = f.readline()

if 'Error termination' in line:
raise LogError(f'The Gaussian job in {self.path} did not converge.')

# Read the next line in the file
line = f.readline()

Expand Down

0 comments on commit cc544b6

Please sign in to comment.