Skip to content

Commit 1766b56

Browse files
authored
Merge pull request #155 from njzjz/gaussian
support parse large forces in Gaussian
2 parents fa6a213 + 4a91f09 commit 1766b56

File tree

3 files changed

+20867
-1
lines changed

3 files changed

+20867
-1
lines changed

dpdata/gaussian/log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def to_system_data(file_name, md=False):
4343
flag = 0
4444
else:
4545
s = line.split()
46-
forces.append([float(x) for x in s[2:5]])
46+
forces.append([float(line[23:38]), float(line[38:53]), float(line[53:68])])
4747
elif flag == 10:
4848
# atom_symbols and coords
4949
if line.startswith(" -------"):

0 commit comments

Comments
 (0)