subroutine form_delta_OV(nC,nO,nV,nR,eO,eV,delta)

! Form energy denominator for CC

  implicit none

! Input variables

  integer,intent(in)            :: nC,nO,nV,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,nV)

    do i=1,nO-nC
      do a=1,nV-nR
        delta(i,a) = eV(a) - eO(i)
      enddo
    enddo

end subroutine form_delta_OV
