Author Topic: FFTPACK installation  (Read 9661 times)

R2197

  • Jr. Member
  • **
  • Posts: 25
FFTPACK installation
« on: May 16, 2023, 05:02:16 AM »
Hi, I am trying to install FFTPACK as a package to feap 8.4 for using it to perform fast fourier transform based simulation. But I am not quite sure how to proceed about it exactly. Can someone help me with this? How to modify the makefile to accomodate this?

Kind regards
Raghav

Prof. S. Govindjee

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 1160
Re: FFTPACK installation
« Reply #1 on: May 16, 2023, 08:58:27 AM »
I have never done this but if what FFTPACK provides is a library (*.a) file and perhaps and include (*.h) file, then you should add these to the make file that builds your executable.  Place the library (full path name) after the $(OBJECTS) under the feap: target.  The include file will be needed to build the routines where calling any FFTPACK routines.  If you build those routines by placing them on the OBJECTS line in the makefile, then you should edit the .f,.f90,.c targets to include the path to the folder containing the *.h files by adding additional -I terms.

R2197

  • Jr. Member
  • **
  • Posts: 25
Re: FFTPACK installation
« Reply #2 on: May 17, 2023, 12:42:56 AM »
Hello Prof. Govindjee

Thank you for your comments. I have now modified the makefile and makefile.in. But, I don't have any include (*.h) files in the package. I am attaching both and the fftpack.zip containing the necessary code. Could you, if possible, please have a look and comment if everything seems ok?

Kind regards
Raghav

Prof. R.L. Taylor

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 2647
Re: FFTPACK installation
« Reply #3 on: May 17, 2023, 07:56:52 AM »
The GitHub version builds an archive you include with the last build of feap.  Thus you make the fftpack first.