Skip to content

Commit

Permalink
Work around JuliaLang/julia#17717
Browse files Browse the repository at this point in the history
  • Loading branch information
garrison committed Aug 3, 2016
1 parent 657735e commit bec87df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/hubbard.jl
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@ function test_slater_determinants(lattice::AbstractLattice, N_up::Int, N_dn::Int
for (total_k, slater_wfs_k) in zip(total_momenta, slater_wfs)
for (j, (energy, filled_k_up_indices, filled_k_dn_indices)) in enumerate(band_fillings[total_k])
# Construct and calculate the two determinants with proper normalization.
up_mat = [exp(im * kdotr(lattice, k, r)) / root_V for r in r_up, k in filled_k_up_indices]
dn_mat = [exp(im * kdotr(lattice, k, r)) / root_V for r in r_dn, k in filled_k_dn_indices]
up_mat = Complex128[exp(im * kdotr(lattice, k, r)) / root_V for r in r_up, k in filled_k_up_indices]
dn_mat = Complex128[exp(im * kdotr(lattice, k, r)) / root_V for r in r_dn, k in filled_k_dn_indices]
slater_wfs_k[i, j] = det(up_mat) * det(dn_mat)
end
end
Expand Down

0 comments on commit bec87df

Please sign in to comment.