6subroutine jtotk(ik,pmat,evecsv,evecsvt)
10integer,
intent(in) :: ik
11complex(8),
intent(in) :: pmat(nstsv,nstsv,3)
12complex(8),
intent(in) :: evecsv(nstsv,nstsv),evecsvt(nstsv,nstsv)
17complex(8),
allocatable :: a(:,:),b(:,:)
19real(8),
external :: ddot
20allocate(a(nstsv,nstsv),b(nstsv,nstsv))
23 call zgemm(
'N',
'C',nstsv,nstsv,nstsv,
zone,pmat(:,:,l),nstsv,evecsv,nstsv, &
25 call zgemm(
'N',
'N',nstsv,nstsv,nstsv,
zone,evecsv,nstsv,a,nstsv,
zzero,b,nstsv)
27 call zgemm(
'N',
'N',nstsv,nstsv,nstsv,
zone,b,nstsv,evecsvt,nstsv,
zzero,a,nstsv)
30 if (abs(wo) <
epsocc) cycle
32 t1=ddot(2*nstsv,evecsvt(:,ist),1,a(:,ist),1)
real(8), dimension(:), allocatable wkpt
real(8), dimension(3) jtot
complex(8), parameter zzero
complex(8), parameter zone
real(8), dimension(:,:), allocatable occsv