Skip to content

Commit

Permalink
kpoints wancalc
Browse files Browse the repository at this point in the history
  • Loading branch information
louisponet committed Nov 22, 2018
1 parent e16ac41 commit bd4543f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/job.jl
Original file line number Diff line number Diff line change
Expand Up @@ -601,11 +601,11 @@ function addwancalc!(job::DFJob, nscf::DFInput{QE}, projections_...;

wanflags[:num_bands] = length(bands)
wanflags[:num_wann] = nbnd

wanflags[:mp_grid] = kakbkc(data(nscf, :k_points).data)
kpoints = data(nscf, :k_points).data
wanflags[:mp_grid] = kakbkc(kpoints)
print && (@info "mp_grid=$(join(wanflags[:mp_grid]," ")) (inferred from nscf input).")

kdata = InputData(:kpoints, :none, kgrid(wanflags[:mp_grid]..., :wan))
kdata = InputData(:kpoints, :none, [k[1:3] for k in kpoints])

for (pw2wanfil, wanfil) in zip(pw2wannames, wannames)
add!(job, DFInput{Wannier90}(wanfil, job.local_dir, copy(wanflags), [kdata], [Exec(), wanexec], true))
Expand Down

0 comments on commit bd4543f

Please sign in to comment.