4
1
mirror of https://github.com/pfloos/quack synced 2024-11-13 09:34:04 +01:00
quack/src/CC/form_delta_OV.f90

31 lines
621 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)
enddo
enddo
end subroutine form_delta_OV