34 integer :: ityp, fi=10, iat
35 integer :: pspd, pspcode, pspxc, lmax, lloc, r2well, &
36 & rchrg, fchrg, qchrg, nproj(5), extension_switch, &
38 character(256) :: ctmp
42 write(*,*)
" Reading ", trim(
spec(ityp)%ps_file), &
43 &
" for pseudopotential of ", trim(
spec(ityp)%elem)
45 open(fi, file = trim(
spec(ityp)%ps_file))
49 read(fi,*)
spec(ityp)%zatom,
spec(ityp)%zion, pspd
50 write(*,*)
" Zatom : ",
spec(ityp)%zatom
51 write(*,*)
" Zion : ",
spec(ityp)%Zion
52 write(*,*)
" Gen. Date : ", pspd
54 read(fi,*) pspcode, pspxc, lmax, lloc,
spec(ityp)%mmax, r2well
55 write(*,*)
" PSP code : ", pspcode
56 write(*,*)
" XC id : ", pspxc
57 write(*,*)
" Max. L : ", lmax
58 write(*,*)
" Localized L : ", lloc
59 write(*,*)
" Radial grid : ",
spec(ityp)%mmax
61 read(fi,*) rchrg, fchrg, qchrg
62 write(*,*)
" R-charge : ", rchrg
63 write(*,*)
" F-charge : ", fchrg
64 write(*,*)
" Q-charge : ", qchrg
67 read(fi,*) extension_switch
70 allocate(
spec(ityp)%psr(
spec(ityp)%mmax), &
73 do ir = 1,
spec(ityp)%mmax
74 read(fi,*) jr,
spec(ityp)%psr(ir), &
84 nelec = nelec +
spec(
atm(iat)%ityp)%Zion
86 write(*,*)
" Number of electrons : ", nelec
87 if(nbnd == 0) nbnd = nint(nelec)
88 write(*,*)
" Number of bands : ", nbnd