mirror of
https://gitlab.com/scemama/qp_plugins_scemama.git
synced 2024-11-08 07:03:43 +01:00
29 lines
547 B
Fortran
29 lines
547 B
Fortran
subroutine form_tau_nc(tau)
|
|
|
|
! Form tau in CCSD
|
|
|
|
implicit none
|
|
|
|
! Local variables
|
|
|
|
integer :: i,j,k,l
|
|
integer :: a,b,c,d
|
|
|
|
! Output variables
|
|
|
|
double precision,intent(out) :: tau(spin_occ_num,spin_occ_num,spin_vir_num,spin_vir_num)
|
|
|
|
do b=1,spin_vir_num
|
|
do a=1,spin_vir_num
|
|
do j=1,spin_occ_num
|
|
do i=1,spin_occ_num
|
|
|
|
tau(i,j,a,b) = t2_cc(i,j,a,b) + t1_cc(i,a)*t1_cc(j,b) - t1_cc(i,b)*t1_cc(j,a)
|
|
|
|
enddo
|
|
enddo
|
|
enddo
|
|
enddo
|
|
|
|
end subroutine form_tau_nc
|