srfftw_mpi.h library replacement

From: <>
Date: Wed, 27 Feb 2008 22:21:14 EST

     I am using GADGET-2 on the IBM pSeries Linux cluster at Boston
University. I have no trouble compiling the code with the gcc compiler, except for when
I choose the PMGRID option in the Makefile. The problem originates from an
include statement for the srfftw_mpi.h library in the file pm_nonperiodic.c. The
system administrator informed me that this library does not exist on the node
of the cluster to which I have access. Attempts to use the
DOUBLEPRECISION_FFTW option in the Makefile result in similar errors, which are basically (1) no
such file (i.e., library) exists, and (2) undeclared identifiers due to the
missing library.
     I tried substituting the rfftw_mpi.h library instead of srfftw_mpi.h,
and this fixed the errors in pm_nonperiodic.c, but four new compile errors
          ld: 0711-317 ERROR: Undefined symbol: .rfftwnd_real_to_complex
          ld: 0711-317 ERROR: Undefined symbol: .rfftwnd_complex_to_real
          ld: 0711-317 ERROR: Undefined symbol: .rfftwnd_destroy_plan
          ld: 0711-317 ERROR: Undefined symbol: .rfftwnd_create_plan
It seems that the "s" in the missing library name refers to single precision.
     (1) Why is the srfftw_mpi.h library used, instead of some other library?
     (2) Is there another fftw library that can be substituted in its place?
          (Permission to install the necessary library might be an issue.)
     (3) Is there some other fix for this problem?
Phil Clingenpeel

**************Ideas to please picky eaters. Watch video on AOL Living.
Received on 2008-02-28 04:21:32

This archive was generated by hypermail 2.3.0 : 2022-09-01 14:03:42 CEST