Skip to content

Commit

Permalink
updated iterations
Browse files Browse the repository at this point in the history
  • Loading branch information
louisponet committed Jun 24, 2021
1 parent 9a40ed3 commit a8027f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/qe/fileio.jl
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ function qe_read_pw_output(filename::String, T = Float64; cleanup = true)
elseif occursin("iteration #", line)
sline = split(line)
it = length(sline[2]) == 1 ? parse(Int, sline[3]) :
sline[2][2:end] == "***" ? out[:scf_iteration][end] + 1 :
parse(Int, sline[2][2:end])
if !haskey(out, :scf_iteration)
out[:scf_iteration] = [it]
Expand Down

0 comments on commit a8027f4

Please sign in to comment.