We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0ef2e4b + 3a91d7a commit a499a42Copy full SHA for a499a42
dpdata/vasp/outcar.py
@@ -5,17 +5,17 @@ def system_info (lines, type_idx_zero = False) :
5
atom_numbs = None
6
nelm = None
7
for ii in lines:
8
- if 'TITEL =' in ii :
+ if 'TITEL' in ii :
9
# get atom names from POTCAR info, tested only for PAW_PBE ...
10
_ii=ii.split()[3]
11
if '_' in _ii:
12
# for case like : TITEL = PAW_PBE Sn_d 06Sep2000
13
atom_names.append(_ii.split('_')[0])
14
else:
15
atom_names.append(_ii)
16
- elif 'NELM' in ii :
17
- nelm = int(ii.split()[2][:-1])
18
- break;
+ elif 'NELM' in ii and nelm == None:
+ # will read only first nelm
+ nelm = int(ii.split()[2].rstrip(";"))
19
elif 'ions per type' in ii :
20
atom_numbs_ = [int(s) for s in ii.split()[4:]]
21
if atom_numbs is None :
0 commit comments