Skip to content

Commit

Permalink
Fix read wsvec.dat
Browse files Browse the repository at this point in the history
  • Loading branch information
qiaojunfeng committed Oct 8, 2024
1 parent 0fdcc22 commit 0743553
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/w90/hr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ end
"""Only read hr files, without further processing"""
function _raw_read_w90_hr(prefix::AbstractString, lattice::AbstractMatrix)
hrdat = read_w90_hrdat(prefix * "_hr.dat")
if isfile(prefix * "_hr.dat")
if isfile(prefix * "_wsvec.dat")
wsvec = read_w90_wsvec(prefix * "_wsvec.dat")
@assert wsvec.Rvectors hrdat.Rvectors "R-vectors in hr.dat and wsvec.dat are not identical"
if wsvec.mdrs
Expand Down

0 comments on commit 0743553

Please sign in to comment.