Skip to content

Commit

Permalink
Fix nelm reading.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnguseZhang committed May 7, 2021
1 parent 823fa60 commit 3a91d7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dpdata/vasp/outcar.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def system_info (lines, type_idx_zero = False) :
atom_names.append(_ii)
elif 'NELM' in ii and nelm == None:
# will read only first nelm
nelm = int(ii.split()[2][:-1])
nelm = int(ii.split()[2].rstrip(";"))
elif 'ions per type' in ii :
atom_numbs_ = [int(s) for s in ii.split()[4:]]
if atom_numbs is None :
Expand Down

0 comments on commit 3a91d7a

Please sign in to comment.