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/CCSDT.irp.f

29 lines
597 B
FortranFixed
Raw Normal View History

2019-09-14 14:20:55 +02:00
subroutine CCSDT(EcCCT)
2019-09-09 16:51:15 +02:00
! 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
2019-09-14 14:15:25 +02:00
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))
2019-09-09 16:51:15 +02:00
! Form CCSD(T) quantities
2019-09-14 14:20:55 +02:00
call form_ub(ub)
2019-09-09 16:51:15 +02:00
2019-09-14 14:20:55 +02:00
call form_ubb(ubb)
2019-09-09 16:51:15 +02:00
2019-09-14 14:15:25 +02:00
call form_T(ub,ubb,EcCCT)
2019-09-09 16:51:15 +02:00
end subroutine CCSDT