Skip to content

Commit

Permalink
Fix normalization of wavefunctions (JuliaMolSim#960)
Browse files Browse the repository at this point in the history
  • Loading branch information
antoine-levitt authored Mar 19, 2024
1 parent d608e45 commit a99ef64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pseudo/PspUpf.jl
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ function PspUpf(path; identifier=path, rcut=nothing)
for l = 0:lmax-1
pswfcs_l = filter-> χ["angular_momentum"] == l, pseudo["atomic_wave_functions"])
for pswfc_li in pswfcs_l
# Ry -> Ha, rχ -> r²χ
push!(r2_pswfcs[l+1], rgrid .* pswfc_li["radial_function"] ./ 2)
# rχ -> r²χ
push!(r2_pswfcs[l+1], rgrid .* pswfc_li["radial_function"])
push!(pswfc_occs[l+1], pswfc_li["occupation"])
push!(pswfc_energies[l+1], pswfc_li["pseudo_energy"])
push!(pswfc_labels[l+1], pswfc_li["label"])
Expand Down

0 comments on commit a99ef64

Please sign in to comment.