Skip to content

Commit

Permalink
fix for components
Browse files Browse the repository at this point in the history
  • Loading branch information
epolack committed Mar 25, 2024
1 parent 0a3a050 commit 6ec2f99
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions benchmark/regression/testcases.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ end

n_electrons = testcase.n_electrons
n_bands = div(n_electrons, 2, RoundUp)
ψ = [Matrix(qr(randn(ComplexF64, length(G_vectors(basis, kpt)), n_bands)).Q)
for kpt in basis.kpoints]
ψ = [DFTK.random_orbitals(basis, kpt, n_bands) for kpt in basis.kpoints]
filled_occ = DFTK.filled_occupation(model)
occupation = [filled_occ * rand(n_bands) for _ = 1:length(basis.kpoints)]
occ_scaling = n_electrons / sum(sum(occupation))
Expand Down

0 comments on commit 6ec2f99

Please sign in to comment.