Skip to content

Commit

Permalink
fix bug for v3.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
1041176461 committed Dec 28, 2023
1 parent 5e2fba8 commit 3b5dfa6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phonopy/interface/abacus.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,8 @@ def read_abacus_output(filename):
natom = int(re.search("[0-9]+", line).group())
if re.search(r"TOTAL-FORCE \(eV/Angstrom\)", line):
force = np.zeros((natom, 3))
_match_pattern = r"^(\s*)([A-Za-z]*[0-9]+)((\s*[+-]?[0-9]+\
\.[0-9]+(e[+-][0-9]{2})?){3})(.*)$"
_match_pattern = r"^(\s*)([A-Za-z]*[0-9]+)((\s*[+-]?"
_match_pattern += r"[0-9]+\.[0-9]+(e[+-][0-9]{2})?){3})(.*)$"
_match = re.match(_match_pattern, line)
while not _match:
line = file.readline()
Expand Down

0 comments on commit 3b5dfa6

Please sign in to comment.