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

34 lines
625 B
Fortran
Raw Normal View History

2020-03-26 16:57:46 +01:00
subroutine form_delta_OOVV(nC,nO,nV,nR,eO,eV,delta)
2019-03-19 10:13:33 +01:00
! Form energy denominator for CC
implicit none
! Input variables
2020-03-26 16:57:46 +01:00
integer,intent(in) :: nC,nO,nV,nR
2020-10-19 14:20:35 +02:00
double precision,intent(in) :: eO(nO-nC)
double precision,intent(in) :: eV(nV-nR)
2019-03-19 10:13:33 +01:00
! Local variables
integer :: i,j,a,b
! Output variables
2020-10-19 14:20:35 +02:00
double precision,intent(out) :: delta(nO-nC,nO-nC,nV-nR,nV-nR)
2019-03-19 10:13:33 +01:00
2020-10-19 14:20:35 +02:00
do i=1,nO-nC
do j=1,nO-nC
2020-03-26 16:57:46 +01:00
do a=1,nV-nR
do b=1,nV-nR
2019-03-19 10:13:33 +01:00
delta(i,j,a,b) = eV(a) + eV(b) - eO(i) - eO(j)
2023-12-03 18:47:30 +01:00
end do
end do
end do
end do
2019-03-19 10:13:33 +01:00
2023-07-27 11:38:38 +02:00
end subroutine