Skip to content

Commit

Permalink
fixed J reading
Browse files Browse the repository at this point in the history
  • Loading branch information
louisponet committed Jun 24, 2019
1 parent 5461db7 commit a5768a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qe/fileio.jl
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ function qe_DFTU(speciesid::Int, parsed_flags::SymAnyDict)
J0 = parsed_flags[:Hubbard_J0][speciesid]
end
if haskey(parsed_flags, :Hubbard_J) && length(parsed_flags[:Hubbard_J]) >= speciesid
J = Float64.(parsed_flags[:Hubbard_J][speciesid, :])
J = Float64.(parsed_flags[:Hubbard_J][:, speciesid])
end
if haskey(parsed_flags, :Hubbard_alpha) && length(parsed_flags[:Hubbard_alpha]) >= speciesid
α = parsed_flags[:Hubbard_alpha][speciesid]
Expand Down

0 comments on commit a5768a4

Please sign in to comment.