Skip to content
This repository has been archived by the owner on Mar 5, 2018. It is now read-only.

Commit

Permalink
a small revision
Browse files Browse the repository at this point in the history
  • Loading branch information
hjchen1983 committed Mar 4, 2016
1 parent 5afd1b0 commit bde545c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TightBinding.jl
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ function monkhorstpackgrid(cell::Matrix{Float64},
w_step = 1.0 / ( nx * ny * nz )
# evaluate K and weight
for k1 = 1:nx, k2 = 1:ny, k3 = 1:nz
k = k1 + (k2-1) * kx + (k3-1) * kx * ky
k = k1 + (k2-1) * nx + (k3-1) * nx * ny
# check when kx==0 or ky==0 or kz==0
# K[:,k] = (k1-(kx/2)) * kx_step + (k2-(ky/2)) * ky_step + (k3-(kz/2)) * kz_step
K[:,k] = (k1-(kx==0? nx:(kx/2))) * kx_step +
Expand Down

0 comments on commit bde545c

Please sign in to comment.