6subroutine gencfrm(wfmt11,wfmt12,wfir11,wfir12,wfmt21,wfmt22,wfir21,wfir22, &
7 crhomt,crhoir,cmagmt,cmagir)
12complex(4),
intent(in) :: wfmt11(npcmtmax,natmtot),wfmt12(npcmtmax,natmtot)
13complex(4),
intent(in) :: wfir11(ngtot),wfir12(ngtot)
14complex(4),
intent(in) :: wfmt21(npcmtmax,natmtot),wfmt22(npcmtmax,natmtot)
15complex(4),
intent(in) :: wfir21(ngtot),wfir22(ngtot)
16complex(4),
intent(out) :: crhomt(npcmtmax,natmtot),crhoir(ngtot)
17complex(4),
intent(out) :: cmagmt(npcmtmax,natmtot,ndmag),cmagir(ngtot,ndmag)
31 call gencrm(
npcmt(is),wfmt11(:,ias),wfmt12(:,ias),wfmt21(:,ias), &
32 wfmt22(:,ias),crhomt(:,ias),ld,cmagmt(:,ias,1))
39call gencrm(ngtot,wfir11,wfir12,wfir21,wfir22,crhoir,ngtot,cmagir)
subroutine gencfrm(wfmt11, wfmt12, wfir11, wfir12, wfmt21, wfmt22, wfir21, wfir22, crhomt, crhoir, cmagmt, cmagir)
pure subroutine gencrm(n, wf11, wf12, wf21, wf22, crho, ld, cmag)
integer, dimension(maxatoms *maxspecies) idxis
integer, dimension(maxspecies) npcmt