Skip to content

Commit

Permalink
Cut off psp8 projectors at 1e-10
Browse files Browse the repository at this point in the history
  • Loading branch information
azadoks committed Oct 11, 2022
1 parent f38da85 commit 731207d
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/psp8.jl
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,15 @@ function parse_betas_dij_local_psp8!(io, psp)
end
end

beta_projectors = [
block["radial_functions"] for block in beta_blocks
]
beta_projectors = Vector[]
for l = 0:psp["header"]["l_max"]
trunc_betas = Vector[]
for beta in beta_blocks[l+1]["radial_functions"]
ir_cut = sum(abs.(beta) .> 1e-10)
push!(trunc_betas, beta[begin:ir_cut])
end
push!(beta_projectors, trunc_betas)
end

ekb = Matrix[]
for l = 0:psp["header"]["l_max"]
Expand Down

0 comments on commit 731207d

Please sign in to comment.