1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| ! *******************************************
subroutine fwd_fft(b,work)
! *******************************************
!****f* fft/fwd_fft
! NAME
! fwd_fft
!
! DESCRIPTION
! Perform a forward FFT
!
! INPUTS
! b: field whose forward FFT is wanted
!
! OUTPUT
! b: forward FFT of the input field
!
! REM
! The sign in the exponential term for the forward and backward FFT
! is the inverse than usual
!***
implicit none
double precision, dimension(*), intent(inout) :: b
double precision, dimension(*), intent(inout) :: work
write(*,*) b(1,:,:)
if (n3 /= 1) then
call DZFFT3D(-1,n1,n2,n3,scaling,b,d1,d2,b,d1/2,d2,work(lbnd1:ubnd1),work(lbnd3:ubnd3),0)
else
call DZFFT2D(-1,n1,n2,scaling,b,d1,b,d1/2,work(lbnd1:ubnd1),work(lbnd3:ubnd3),0)
end if
end subroutine |
Partager