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

31 lines
610 B
Fortran
Raw Normal View History

2020-03-26 16:57:46 +01:00
subroutine form_delta_OV(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-11-05 15:51:33 +01:00
integer,intent(in) :: nC
integer,intent(in) :: nO
integer,intent(in) :: nV
integer,intent(in) :: nR
2020-10-08 17:19:48 +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,a
! Output variables
2020-11-05 15:51:33 +01:00
double precision,intent(out) :: delta(nO-nC,nV-nR)
2019-03-19 10:13:33 +01:00
2020-10-08 17:19:48 +02:00
do i=1,nO-nC
2020-03-26 16:57:46 +01:00
do a=1,nV-nR
2019-03-19 10:13:33 +01:00
delta(i,a) = eV(a) - eO(i)
2023-12-03 18:47:30 +01:00
end do
end do
2019-03-19 10:13:33 +01:00
2023-07-27 11:38:38 +02:00
end subroutine