6 subroutine jtotk(ik,pmat,evecsv,evecsvt)
10 integer,
intent(in) :: ik
11 complex(8),
intent(in) :: pmat(nstsv,nstsv,3)
12 complex(8),
intent(in) :: evecsv(nstsv,nstsv),evecsvt(nstsv,nstsv)
17 complex(8),
allocatable :: a(:,:),b(:,:)
19 real(8),
external :: ddot
20 allocate(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(3) jtot
complex(8), parameter zone
subroutine jtotk(ik, pmat, evecsv, evecsvt)
real(8), dimension(:), allocatable wkpt
real(8), dimension(:,:), allocatable occsv
complex(8), parameter zzero