Skip to content

Commit

Permalink
Fixed parsing of irrep_data for TM>=7.7.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwaroquiers committed Feb 22, 2024
1 parent b24639b commit ec9189f
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions turbomoleio/output/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1544,11 +1544,39 @@ def pre_escf_run(self):
if match is not None:
d["max_treated_vectors"] = convert_int(match.group().split()[-1])

# In TM versions < 7.7, IRREP's block is like:
# IRREP tensor space dimension number of roots
#
# a1 24 12
# a2 9 9
# b1 19 12
# b2 13 12
#
# maximum number of Davidson iterations set to 35
#
#
# machine precision: 2.22D-16
#
# While in TM versions >= 7.7, the "maximum number of Davidson" disappeared:
# IRREP tensor space dimension number of roots
#
# a1 24 12
# a2 9 9
# b1 19 12
# b2 13 12
#
# machine precision: 2.22D-16
r = (
r"IRREP\s+tensor\s+space\s+dimension\s+number\s+of\s+roots(.+)"
r"maximum number of Davidson"
)
match = re.search(r, match_str, re.DOTALL)
if match is None:
r = (
r"IRREP\s+tensor\s+space\s+dimension\s+number\s+of\s+roots(.+)"
r"machine precision:"
)
match = re.search(r, match_str, re.DOTALL)
if match is not None:
irrep_data = {}
for line in match.group(1).splitlines():
Expand Down

0 comments on commit ec9189f

Please sign in to comment.