Skip to content

Commit

Permalink
support parse large forces in Gaussian
Browse files Browse the repository at this point in the history
  • Loading branch information
njzjz committed May 11, 2021
1 parent fa6a213 commit 4a91f09
Show file tree
Hide file tree
Showing 3 changed files with 20,867 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dpdata/gaussian/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def to_system_data(file_name, md=False):
flag = 0
else:
s = line.split()
forces.append([float(x) for x in s[2:5]])
forces.append([float(line[23:38]), float(line[38:53]), float(line[53:68])])
elif flag == 10:
# atom_symbols and coords
if line.startswith(" -------"):
Expand Down
Loading

0 comments on commit 4a91f09

Please sign in to comment.