Skip to content

Commit 0a2a2ef

Browse files
authored
Merge branch 'develop' into multiple_outcars
2 parents 4f0e238 + 82f3f6c commit 0a2a2ef

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
@@ -144,10 +144,10 @@ def get_KPPRA(self):
144144
with open(self.outcar) as fp:
145145
#store the number of atoms and number of irreducible K-points
146146
for line in fp:
147-
if "NIONS" in line:
147+
if "number of ions NIONS =" in line:
148148
words = line.split()
149149
NI = int(words[11])
150-
elif "NKPTS" in line:
150+
elif "k-points NKPTS =" in line:
151151
words = line.split()
152152
NIRK = float(words[3])
153153
#check if the number of k-points was reduced by VASP if so, sum all the k-points weight

0 commit comments

Comments
 (0)