CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Transferred array automatically changed? (https://www.cfd-online.com/Forums/main/112648-transferred-array-automatically-changed.html)

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 https://www2.cisl.ucar.edu/resources.../documentation.

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

Thanks in advance. Any comment is appreciated.

jo

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 10:33.