Skip to content

Commit a99ef64

Browse files
Fix normalization of wavefunctions (#960)
1 parent d608e45 commit a99ef64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pseudo/PspUpf.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ function PspUpf(path; identifier=path, rcut=nothing)
126126
for l = 0:lmax-1
127127
pswfcs_l = filter-> χ["angular_momentum"] == l, pseudo["atomic_wave_functions"])
128128
for pswfc_li in pswfcs_l
129-
# Ry -> Ha, rχ -> r²χ
130-
push!(r2_pswfcs[l+1], rgrid .* pswfc_li["radial_function"] ./ 2)
129+
# rχ -> r²χ
130+
push!(r2_pswfcs[l+1], rgrid .* pswfc_li["radial_function"])
131131
push!(pswfc_occs[l+1], pswfc_li["occupation"])
132132
push!(pswfc_energies[l+1], pswfc_li["pseudo_energy"])
133133
push!(pswfc_labels[l+1], pswfc_li["label"])

0 commit comments

Comments
 (0)