-   Linux - Newbie (
-   -   A compile time error in GFortran I don't understand (

suicidaleggroll 12-11-2014 08:21 PM

Unless the forward and reverse algorithms are corrupted in the same way. You should do an independent verification using another set of tools. Most languages have an FFT library of some kind, you could even write a quick C wrapper for fftw3, I've used it before and it's pretty straight forward. You could probably even use GDL or Octave (free "approximations" of IDL and Matlab respectively), or python, etc.

The only reason I'm harping on this so much is because I'm about 99% sure that your solution for the compilation problem will break the code. Not programatically, but mathematically. It seems to me that the original developer was probably a C programmer who was branching out into Fortran, and wrote those function calls like he would have in C, which means passing the memory location of the index in the array at which you want to start, and letting the function increment from there. Fortran doesn't work that way, at least not naturally. He probably kluged together some syntax that let his specific compiler behave as he wanted, but it was not ANSI, and of course breaks as soon as the compiler changes. The focus here isn't to get your compiler to build the code without complaint, it's to get your compiler to build the code in the way that the original developer intended, and simply removing the index offset in the function calls is almost certainly not the right answer.

AlexBB 12-13-2014 10:46 AM

Thank you for your intricate analysis. I am alert to all options, including to what you are saying. It is a huge task for me to wade through so much code with variants of FFT methods. Might take time but I will crack it. My task is even more complicated by the fact that I need to do 2-D transform and the other dimension is not FFT, although the variables are separatable. I truly value your contributions. Thanks, - A.

All times are GMT -5. The time now is 07:38 AM.