These were the instructions for setting up Windows for the first version of HLSVDPro (version 1.0.0 to 1.0.1). That version of HLSVDPro was less modular that the current one. It focused on ‘fitting' model of lorentzian lines to data and returning a set of amplitude, frequency, phase and damping values that described the fit for the first N model lines (where N is provided by the user). This algorithm used the PROPACK (version 1.x) SVD algorithm to calculate the first N singular values. It was also based on the method described in the W.W.F. Pijnappel, A. van den Boogaart, R. de Beer, D. van Ormondt, J. Magn. Reson. 97, 122 (1992) paper which used an FFT as part of its process.
As of HLSVDPro version 2.x the algorithm is based on the T. Laudadio, N. Mastronardi, L. Vanhamme, P. Van Hecke and S. Van Huffel, J Magn Res, 157, p292-7, (2002) paper, which does not use an FFT. Also we have updated the SVD algorithm to use PROPACK version 2.2, and have put an f2py front end on that call, rather than the previous CTYPES front end.
This site offers a nice installer for GCC+GFortran. Unfortunately, only the latest version of GCC+GFortran (5.1.0 as of this writing) can be installed with their nice installer, and when I build HLSVDPRO with that version, HLSVDPRO segfaults somewhere in its guts.
I reverted to GFortran 4.6.1 (the version with which I built HLSVDPRO the very first time) and the segfault went away, so that's what I advise you to do too. It's a little more work.
You can download the installer and the GFortran update from this Web page. FIXME attach files.
Run the GCC installer. It will install into C:\MinGW64
.
Unzip gcc-4.6.1-tdm64-1-fortran.zip
.
cd into the directory where you unzipped that, then run this command –
xcopy *.* c:\MinGW64 /E /F
That will copy everything in the Fortran package into the directory where you installed the compiler.
If you want to see what that command will do without actually copying any files (i.e. a dry run), add the /L
parameter.
Add this to your PATH if the installer didn't do so already –
c:\MinGW64\bin;
Download FFTW for Windows. The package will probably be called something like fftw-3.3.4-dll64.zip
. You only need one file from that package: libfftw3-3.dll
. Copy that file into the hlsvdpro\src
directory. (It's a little strange to copy a DLL into the source code directory, but if we put it in the src\bin
directory where it logically belongs, it will get wiped out every time one runs make clean
.)