1
0
mirror of https://gitlab.com/scemama/qp_plugins_scemama.git synced 2024-11-07 14:43:41 +01:00
qp_plugins_scemama/devel/cc/form_g.irp.f

49 lines
1.0 KiB
FortranFixed
Raw Normal View History

2019-09-14 14:15:25 +02:00
subroutine form_g(hvv,hoo,t1,gvv,goo)
2019-09-09 16:51:15 +02:00
! Scuseria Eqs. (9), (10)
implicit none
! Input variables
2019-09-14 14:15:25 +02:00
double precision,intent(in) :: hvv(spin_vir_num,spin_vir_num)
double precision,intent(in) :: hoo(spin_occ_num,spin_occ_num)
2019-09-09 16:51:15 +02:00
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) :: gvv(spin_vir_num,spin_vir_num)
double precision,intent(out) :: goo(spin_occ_num,spin_occ_num)
2019-09-09 16:51:15 +02:00
gvv(:,:) = hvv(:,:)
2019-09-14 14:15:25 +02:00
do a=1,spin_vir_num
do c=1,spin_vir_num
do d=1,spin_vir_num
do k=1,spin_occ_num
2019-09-09 16:51:15 +02:00
gvv(c,a) = gvv(c,a) + VOVV(a,k,c,d)*t1(k,d)
end do
end do
end do
end do
goo(:,:) = hoo(:,:)
2019-09-14 14:15:25 +02:00
do k=1,spin_occ_num
do i=1,spin_occ_num
do c=1,spin_vir_num
do l=1,spin_occ_num
2019-09-09 16:51:15 +02:00
goo(i,k) = goo(i,k) + OOOV(k,l,i,c)*t1(l,c)
end do
end do
end do
end do
end subroutine form_g