Hi, I have recently downloaded FTN95PE (and Plato 3.50), as I was looking for a Fortran compiler for Windows 2000.
I have done some tests using old programs which I have compiled and run before on Windows (using g95) and on Linux (using pgf90) without problems. However, using FTN95 and building a project using Plato I get problems. I have not changed any of the standard settings in Plato (at least I hope so…).
The problem occurs when I try to use the standard Fast-Fourier-Transform routine dcfftb.f (downloaded from http://gams.nist.gov/serve.cgi/ModuleComponent/5683/Fullsource/ITL/dcfftb.f and put in a separate file).
Using the program below I get the following error message:
Runtime error from program:c:\ …\win32\testdcfftb.exe Run-time Error Attempt to call a routine with argument number three as a real(kind=2) when an integer(kind=3) was required
DCFTI1 - in file dcfftb.f at line 398 [+008a] DCFFTI - in file dcfftb.f at line 116 [+0181] HILBERTFFTINSTALL - in file testdcfftb.f90 at line 28 [+0153] main - in file testdcfftb.f90 at line 16 [+0041]
It seems to an internal call in ‘DCFFTB’ which causes the problems. Does it matter that the ‘DCFFTB’-code is written in F77?
I hope that someone can tell what I am doing wrong.
Thanks for any help I can get!
Best regards,
Jonas
------- Here is the program -------
! Test of FFT-routine dcfftb.f from ! 'http://gams.nist.gov/serve.cgi/ModuleComponent/5683/Fullsource/ITL/dcfftb.f'
MODULE ModHilbertFFT INTEGER :: NLength,NHilbertFFT REAL(KIND(0.0D0)), DIMENSION(:), allocatable :: WhilbertFFT END MODULE ModHilbertFFT
program testDCFFTB !********************************** USE ModHilbertFFT IMPLICIT none INTEGER ESTEP
ESTEP = 2**12
CALL HilbertFFTInstall(ESTEP) !**********************************
END testDCFFTB
SUBROUTINE HilbertFftInstall(N) !********************************** USE ModHilbertFft IMPLICIT NONE INTEGER, INTENT(IN):: N Nlength = N NHilbertFft = 2N ALLOCATE(WhilbertFft(4NHilbertFft+15))
CALL DCFFTI(NHilbertFft,WHilbertFft)
END SUBROUTINE HilbertFftInstall !*********************************
! put the file 'dcfftb.f' from ! http://gams.nist.gov/serve.cgi/ModuleComponent/5683/Fullsource/ITL/dcfftb.f ! into the project.