1
0
mirror of https://gitlab.com/scemama/qp_plugins_scemama.git synced 2024-12-22 20:34:05 +01:00
qp_plugins_scemama/devel/cc/CCSDT.irp.f
2019-09-14 14:25:53 +02:00

29 lines
597 B
Fortran

subroutine CCSDT(EcCCT)
! Compute the (T) correction of the CCSD(T) energy
implicit none
! Local variables
double precision,allocatable :: ub(:,:,:,:,:,:)
double precision,allocatable :: ubb(:,:,:,:,:,:)
! Output variables
double precision,intent(out) :: EcCCT
! Memory allocation
allocate(ub(spin_occ_num,spin_occ_num,spin_occ_num,spin_vir_num,spin_vir_num,spin_vir_num),ubb(spin_occ_num,spin_occ_num,spin_occ_num,spin_vir_num,spin_vir_num,spin_vir_num))
! Form CCSD(T) quantities
call form_ub(ub)
call form_ubb(ubb)
call form_T(ub,ubb,EcCCT)
end subroutine CCSDT