6subroutine writespecies(symb,name,zn,mass,rmin,rm,rmax,nrm,nst,n,l,k,occ,eval)
11character(*),
intent(in) :: symb,name
12real(8),
intent(in) :: zn,mass
13real(8),
intent(in) :: rmin,rm,rmax
14integer,
intent(in) :: nrm,nst
15integer,
intent(in) :: n(nst),l(nst),k(nst)
16real(8),
intent(in) :: occ(nst)
17real(8),
intent(in) :: eval(nst)
21logical core(maxstsp),lorb(maxstsp)
23real(8),
parameter :: e0=0.15d0
25core(1:nst)=(eval(1:nst) <
ecvcut)
30 if ((n(ist) == n(jst)).and.(l(ist) == l(jst))) core(jst)=.true.
36 if (.not.core(ist)) lmax=max(lmax,l(ist))
42 if (.not.core(ist))
then
43 if ((l(ist) == 0).or.(l(ist) < k(ist)))
then
44 if ((eval(ist) <
esccut).or.(l(ist) >= 2))
then
52 open(55,file=trim(symb)//
'.in',form=
'FORMATTED')
53 write(55,
'(" ''",A,"''",T45,": spsymb")') trim(symb)
54 write(55,
'(" ''",A,"''",T45,": spname")') trim(name)
55 write(55,
'(G14.6,T45,": spzn")') zn
56 write(55,
'(G18.10,T45,": spmass")') mass
57 write(55,
'(G14.6,2F10.4,I6,T45,": rminsp, rmt, rmaxsp, nrmt")') rmin,rm, &
59 write(55,
'(I4,T45,": nstsp")') nst
60 write(55,
'(3I4,F10.5," ",L1,T45,": nsp, lsp, ksp, occsp, spcore")') n(1), &
61 l(1),k(1),occ(1),core(1)
63 write(55,
'(3I4,F10.5," ",L1)') n(ist),l(ist),k(ist),occ(ist),core(ist)
65 write(55,
'(I4,T45,": apword")') 1
66 write(55,
'(F10.4,I4," ",L1,T45,": apwe0, apwdm, apwve")') e0,0,.false.
67 write(55,
'(I4,T45,": nlx")') 0
68 write(55,
'(I4,T45,": nlorb")') nlo
70 write(55,
'(2I4,T45,": lorbl, lorbord")') i,2
71 write(55,
'(F10.4,I4," ",L1,T45,": lorbe0, lorbdm, lorbve")') e0,0,.false.
72 write(55,
'(F10.4,I4," ",L1)') e0,1,.false.
76 write(55,
'(2I4,T45,": lorbl, lorbord")') l(ist),2
77 write(55,
'(F10.4,I4," ",L1,T45,": lorbe0, lorbdm, lorbve")') e0,0,.false.
78 write(55,
'(F10.4,I4," ",L1)') eval(ist),0,.true.
subroutine writespecies(symb, name, zn, mass, rmin, rm, rmax, nrm, nst, n, l, k, occ, eval)