CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Main CFD Forum (
-   -   Transferred array automatically changed? (

jollage February 1, 2013 18:32

Transferred array automatically changed?
2 Attachment(s)
Hi All

I'm experimenting with the famous fftpack, but encountered some "weird" problems (or stupid ones....) that when I transferred an array to the subroutine rfft1f.f, the array would automatically, at least in my mac, be altered in the subroutine.

I attached the codes here. I made a simple makefile. Please check the main file fft_test.f and the subroutine rfft1f.f, the other files are not edited. The results I got is attached. The fftpack is downloaded from here

Could anyone point out what is going on here? What could be the reason?

Thanks in advance. Any comment is appreciated.


jollage February 1, 2013 18:45

Oh..sorry for bothering...I just found the error, it's the problem of the data types...

All times are GMT -4. The time now is 05:43.