Skip to content

Commit

Permalink
fixed wan energy ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
louisponet committed May 26, 2018
1 parent fe6084c commit 409da7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function apply_fermi_level!(band::Band, fermi::Union{String,AbstractFloat})
end

function Emax(Emin, nbnd, bands)
nbndfound = 0
nbndfound = 1
max = 0
for b in bands
if minimum(b.eigvals) >= Emin && nbndfound < nbnd
Expand Down

0 comments on commit 409da7e

Please sign in to comment.