mirror of
https://github.com/pfloos/quack
synced 2024-09-07 04:04:46 +02:00
31 lines
621 B
Fortran
31 lines
621 B
Fortran
subroutine form_delta_OV(nC,nO,nV,nR,eO,eV,delta)
|
|
|
|
! Form energy denominator for CC
|
|
|
|
implicit none
|
|
|
|
! Input variables
|
|
|
|
integer,intent(in) :: nC
|
|
integer,intent(in) :: nO
|
|
integer,intent(in) :: nV
|
|
integer,intent(in) :: nR
|
|
double precision,intent(in) :: eO(nO-nC)
|
|
double precision,intent(in) :: eV(nV-nR)
|
|
|
|
! Local variables
|
|
|
|
integer :: i,a
|
|
|
|
! Output variables
|
|
|
|
double precision,intent(out) :: delta(nO-nC,nV-nR)
|
|
|
|
do i=1,nO-nC
|
|
do a=1,nV-nR
|
|
delta(i,a) = eV(a) - eO(i)
|
|
enddo
|
|
enddo
|
|
|
|
end subroutine form_delta_OV
|