dsinti Subroutine

subroutine dsinti(n, Wsave)

Arguments

Type IntentOptional Attributes Name
integer :: n
real(kind=rk) :: Wsave

Contents

Source Code


Variables

Type Visibility Attributes Name Initial
real(kind=rk), public :: dt
integer, public :: k
integer, public :: np1
integer, public :: ns2
real(kind=rk), public, parameter :: pi = acos(-1.0_rk)

Source Code

      subroutine dsinti(n,Wsave)
      use fftpack_kind
      implicit none
      real(rk) :: dt , Wsave
      integer :: k , n , np1 , ns2
      dimension Wsave(*)
      real(rk),parameter :: pi = acos(-1.0_rk)
      if ( n<=1 ) return
      ns2 = n/2
      np1 = n + 1
      dt = pi/real(np1, rk)
      do k = 1 , ns2
         Wsave(k) = 2.0_rk*sin(k*dt)
      enddo
      call dffti(np1,Wsave(ns2+1))
      end subroutine dsinti