[petsc-users] FFT Matrix Examples/Tests: Compiletime error

Hong Zhang hzhang at mcs.anl.gov
Tue Jul 10 10:31:24 CDT 2012


Thomas:
Please update to petsc-3.3, and build it with FFTW.
ex148.c was rewritten using FFTW.

Hong

> Hello list!
>
> I tried to test one of the FFT examples in src/mat/examples/tests/ by
> typing "make ex148" in this directory. Unfortunately the compilation
> failed:
>
> mpicxx -o ex148.o -c -Wall -Wwrite-strings -Wno-strict-aliasing
> -Wno-unknown-pragmas -O3 -fPIC
> -I/home/thomas/local/src/petsc-3.2-p6/include
> -I/home/thomas/local/src/petsc-3.2-p6/arch-linux2-cxx-release/include
> -I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi
> -D__INSDIR__=src/mat/examples/tests/ ex148.c
> ex148.c: In function ‘PetscInt main(PetscInt, char**)’:
> ex148.c:45:37: error: ‘InputTransformFFT’ was not declared in this scope
> ex148.c:54:39: error: ‘OutputTransformFFT’ was not declared in this scope
> make: [ex148.o] Error 1 (ignored)
>
> All the other FFT examples seem to use these two Transformation
> functions as well. Any ideas where these functions are defined ?
>
> Regards,
> Thomas
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120710/2b7aa186/attachment.html>


More information about the petsc-users mailing list