2019-09-14 14:15:25 +02:00
|
|
|
subroutine form_ub(t1,ub)
|
2019-09-09 16:51:15 +02:00
|
|
|
|
|
|
|
! Form 1st term in (T) correction
|
|
|
|
|
|
|
|
implicit none
|
|
|
|
|
|
|
|
! Input variables
|
|
|
|
|
2019-09-14 14:15:25 +02:00
|
|
|
double precision,intent(in) :: t1(spin_occ_num,spin_vir_num)
|
2019-09-09 16:51:15 +02:00
|
|
|
|
|
|
|
! Local variables
|
|
|
|
|
|
|
|
integer :: i,j,k,l
|
|
|
|
integer :: a,b,c,d
|
|
|
|
|
|
|
|
! Output variables
|
|
|
|
|
2019-09-14 14:15:25 +02:00
|
|
|
double precision,intent(out) :: ub(spin_occ_num,spin_occ_num,spin_occ_num,spin_vir_num,spin_vir_num,spin_vir_num)
|
2019-09-09 16:51:15 +02:00
|
|
|
|
2019-09-14 14:15:25 +02:00
|
|
|
do c=1,spin_vir_num
|
|
|
|
do b=1,spin_vir_num
|
|
|
|
do a=1,spin_vir_num
|
|
|
|
do k=1,spin_occ_num
|
|
|
|
do j=1,spin_occ_num
|
|
|
|
do i=1,spin_occ_num
|
2019-09-09 16:51:15 +02:00
|
|
|
|
|
|
|
ub(i,j,k,a,b,c) = t1(i,a)*OOVV(j,k,b,c) &
|
|
|
|
+ t1(i,b)*OOVV(j,k,c,a) &
|
|
|
|
+ t1(i,c)*OOVV(j,k,a,b) &
|
|
|
|
+ t1(j,a)*OOVV(k,i,b,c) &
|
|
|
|
+ t1(j,b)*OOVV(k,i,c,a) &
|
|
|
|
+ t1(j,c)*OOVV(k,i,a,b) &
|
|
|
|
+ t1(k,a)*OOVV(i,j,b,c) &
|
|
|
|
+ t1(k,b)*OOVV(i,j,c,a) &
|
|
|
|
+ t1(k,c)*OOVV(i,j,a,b)
|
|
|
|
|
|
|
|
end do
|
|
|
|
end do
|
|
|
|
end do
|
|
|
|
end do
|
|
|
|
end do
|
|
|
|
end do
|
|
|
|
|
|
|
|
end subroutine form_ub
|