[petsc-users] FFTW convolution in Petsc

Matthew Knepley knepley at gmail.com
Sat Jul 5 18:20:10 CDT 2014


On Sun, Jul 6, 2014 at 1:18 AM, LikunTan <tlk0812 at hotmail.com> wrote:

> Hi all,
>
> I am testing /petsc-3.4.3/src/mat/examples/tests/ex121.c for FFTW
> convolution in Petsc.
>

You need to configure using --download-fftw

   Matt


> I simplified the example code by considering the tangent function of the
> real space vector only, and got the following error when executing it:
>
> [0]PETSC ERROR: --------------------- Error Message
> ------------------------------------
> [0]PETSC ERROR: Unknown type. Check for miss-spelling or missing external
> package needed for type:
> see http://www.mcs.anl.gov/petsc/documentation/installation.html#external!
> [0]PETSC ERROR: Unknown Mat type given: fftw!
> [0]PETSC ERROR:
> ------------------------------------------------------------------------
> [0]PETSC ERROR: Petsc Release Version 3.4.3, Oct, 15, 2013
> [0]PETSC ERROR: See docs/changes/index.html for recent updates.
> [0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.
> [0]PETSC ERROR: See docs/index.html for manual pages.
> [0]PETSC ERROR:
> ------------------------------------------------------------------------
> [0]PETSC ERROR: ./ex121 on a arch-linux2-c-debug named
> garuda.ce.caltech.edu by likunt Sat Jul  5 16:07:13 2014
> [0]PETSC ERROR: Libraries linked from
> /home/likunt/petsc-3.4.3/arch-linux2-c-debug/lib
> [0]PETSC ERROR: Configure run at Sat Jul  5 13:01:11 2014
> [0]PETSC ERROR: Configure options --with-scale-type=complex
> [0]PETSC ERROR:
> ------------------------------------------------------------------------
> [0]PETSC ERROR: MatSetType() line 63 in src/mat/interface/matreg.c
> [0]PETSC ERROR: MatCreateFFT() line 76 in src/mat/impls/fft/fft.c
> [0]PETSC ERROR: main() line 59 in src/mat/examples/tests/ex121.c
>
> The error message shows lack of FFTW, but I am not sure how to include
> FFTW in the external package. Your help is well appreciated.
>
>


-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140706/a1f60853/attachment.html>


More information about the petsc-users mailing list