Skip to content

Commit

Permalink
nbnd issue
Browse files Browse the repository at this point in the history
  • Loading branch information
louisponet committed Jun 18, 2019
1 parent e7b70a7 commit 3ae9386
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/job.jl
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ function sanitizeflags!(job::DFJob)
setflags!(job, :prefix => "$(job.name)", print=false)
if iswannierjob(job)
nscfcalc = getnscfcalc(job)
if package(nscfcalc) == QE
if package(nscfcalc) == QE && hasflag(nscfcalc, :nbnd)
setflags!(job, :num_bands => nscfcalc[:nbnd], print=false)
elseif package(nscfcalc) == Elk
setflags!(job, :num_bands => length(nscfcalc[:wann_bands]))
Expand Down

0 comments on commit 3ae9386

Please sign in to comment.