4
1
mirror of https://github.com/pfloos/quack synced 2024-06-02 11:25:28 +02:00
quack/src/CC/form_taus_nc.f90

35 lines
626 B
Fortran
Raw Normal View History

2019-09-11 14:47:18 +02:00
subroutine form_taus_nc(nO,nV,t1,t2,taus)
! Form tau in CCSD
implicit none
! Input variables
integer,intent(in) :: nO,nV
double precision,intent(in) :: t1(nO,nV)
double precision,intent(in) :: t2(nO,nO,nV,nV)
! Local variables
integer :: i,j,k,l
integer :: a,b,c,d
! Output variables
double precision,intent(out) :: taus(nO,nO,nV,nV)
do i=1,nO
do j=1,nO
do a=1,nV
do b=1,nV
taus(i,j,a,b) = t2(i,j,a,b) + 0.5d0*(t1(i,a)*t1(j,b) - t1(i,b)*t1(j,a))
2023-12-03 18:47:30 +01:00
end do
end do
end do
end do
2019-09-11 14:47:18 +02:00
2023-07-27 11:38:38 +02:00
end subroutine