6 subroutine gencrho(tsh,tspc,ngt,wfmt1,wfir1,wfmt2,wfir2,crhomt,crhoir)
10 logical,
intent(in) :: tsh,tspc
11 integer,
intent(in) :: ngt
12 complex(4),
intent(in) :: wfmt1(npcmtmax,natmtot,*),wfir1(ngt,*)
13 complex(4),
intent(in) :: wfmt2(npcmtmax,natmtot,*),wfir2(ngt,*)
14 complex(4),
intent(out) :: crhomt(npcmtmax,natmtot),crhoir(ngt)
23 call crho2(
npcmt(is),wfmt1(:,ias,1),wfmt1(:,ias,2),wfmt2(:,ias,1), &
24 wfmt2(:,ias,2),crhomt(:,ias))
27 call crho1(
npcmt(is),wfmt1(:,ias,1),wfmt2(:,ias,1),crhomt(:,ias))
33 call crho2(
npcmt(is),wfmt1(:,ias,1),wfmt1(:,ias,2),wfmt2(:,ias,1), &
34 wfmt2(:,ias,2),crhomt(:,ias))
36 call crho1(
npcmt(is),wfmt1(:,ias,1),wfmt2(:,ias,1),crhomt(:,ias))
42 call crho2(ngt,wfir1,wfir1(:,2),wfir2,wfir2(:,2),crhoir)
44 call crho1(ngt,wfir1,wfir2,crhoir)
49 pure subroutine crho1(n,wf1,wf2,crho)
51 integer,
intent(in) :: n
52 complex(4),
intent(in) :: wf1(n),wf2(n)
53 complex(4),
intent(out) :: crho(n)
54 crho(1:n)=conjg(wf1(1:n))*wf2(1:n)
57 pure subroutine crho2(n,wf11,wf12,wf21,wf22,crho)
59 integer,
intent(in) :: n
60 complex(4),
intent(in) :: wf11(n),wf12(n),wf21(n),wf22(n)
61 complex(4),
intent(out) :: crho(n)
62 crho(1:n)=conjg(wf11(1:n))*wf21(1:n)+conjg(wf12(1:n))*wf22(1:n)
integer, dimension(maxspecies) npcmt
subroutine gencrho(tsh, tspc, ngt, wfmt1, wfir1, wfmt2, wfir2, crhomt, crhoir)
pure subroutine crho1(n, wf1, wf2, crho)
integer, dimension(maxatoms *maxspecies) idxis
subroutine cfshtip(nr, nri, cfmt)
pure subroutine crho2(n, wf11, wf12, wf21, wf22, crho)
integer, dimension(maxspecies) nrcmt
integer, dimension(maxspecies) nrcmti