Skip to content

Commit 82f3f6c

Browse files
authored
Merge pull request #75 from WardLT/outcar_bugfix
Made detection of NION, NKPTS more robust
2 parents 5acbf01 + 94b6bc5 commit 82f3f6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dfttopif/parsers/vasp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,10 @@ def get_KPPRA(self):
148148
with open(self.outcar) as fp:
149149
#store the number of atoms and number of irreducible K-points
150150
for line in fp:
151-
if "NIONS" in line:
151+
if "number of ions NIONS =" in line:
152152
words = line.split()
153153
NI = int(words[11])
154-
elif "NKPTS" in line:
154+
elif "k-points NKPTS =" in line:
155155
words = line.split()
156156
NIRK = float(words[3])
157157
#check if the number of k-points was reduced by VASP if so, sum all the k-points weight

0 commit comments

Comments
 (0)