1
0
mirror of https://gitlab.com/scemama/qp_plugins_scemama.git synced 2024-12-23 04:43:38 +01:00
qp_plugins_scemama/devel/cc/form_ub.irp.f

41 lines
1.1 KiB
FortranFixed
Raw Normal View History

2019-09-14 14:20:55 +02:00
subroutine form_ub(ub)
2019-09-09 16:51:15 +02:00
! Form 1st term in (T) correction
implicit none
! 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
2019-09-14 14:20:55 +02:00
ub(i,j,k,a,b,c) = t1_cc(i,a)*OOVV(j,k,b,c) &
+ t1_cc(i,b)*OOVV(j,k,c,a) &
+ t1_cc(i,c)*OOVV(j,k,a,b) &
+ t1_cc(j,a)*OOVV(k,i,b,c) &
+ t1_cc(j,b)*OOVV(k,i,c,a) &
+ t1_cc(j,c)*OOVV(k,i,a,b) &
+ t1_cc(k,a)*OOVV(i,j,b,c) &
+ t1_cc(k,b)*OOVV(i,j,c,a) &
+ t1_cc(k,c)*OOVV(i,j,a,b)
2019-09-09 16:51:15 +02:00
end do
end do
end do
end do
end do
end do
end subroutine form_ub