CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Main CFD Forum

Transferred array automatically changed?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   February 1, 2013, 17:32
Default Transferred array automatically changed?
  #1
New Member
 
Join Date: Feb 2011
Posts: 17
Rep Power: 5
jollage is on a distinguished road
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
Attached Images
File Type: png results.png (18.5 KB, 2 views)
Attached Files
File Type: zip fft_test.zip (42.7 KB, 0 views)
jollage is offline   Reply With Quote

Old   February 1, 2013, 17:45
Default
  #2
New Member
 
Join Date: Feb 2011
Posts: 17
Rep Power: 5
jollage is on a distinguished road
Oh..sorry for bothering...I just found the error, it's the problem of the data types...
jollage is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
multi-dimensional dynamic array allocation for multi-block solver using fortran mano Main CFD Forum 4 June 25, 2012 21:01
Simple UDF array question [Fluent] Patrick1 Fluent UDF and Scheme Programming 0 April 19, 2012 01:41
An unknown array definition in fortran morteza08 Main CFD Forum 0 June 20, 2011 04:32
ODETest.C Compiling failed in version 1.6 sxhdhi OpenFOAM Bugs 4 April 27, 2010 05:36
Tecplot Macro - conditional - array variable pchidamb Tecplot 2 July 29, 2009 09:48


All times are GMT -4. The time now is 08:45.