<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Jul 6, 2014 at 1:18 AM, LikunTan <span dir="ltr"><<a href="mailto:tlk0812@hotmail.com" target="_blank">tlk0812@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">Hi all,<div><br></div><div>I am testing /petsc-3.4.3/src/mat/examples/tests/ex121.c for FFTW convolution in Petsc.</div></div></div></blockquote><div><br></div><div>You need to configure using --download-fftw</div>
<div><br></div><div>   Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div dir="ltr"><div>I simplified the example code by considering the tangent function of the real space vector only, and got the following error when executing it:</div>
<div><br></div><div><div>[0]PETSC ERROR: --------------------- Error Message ------------------------------------</div><div>[0]PETSC ERROR: Unknown type. Check for miss-spelling or missing external package needed for type:</div>
<div>see <a href="http://www.mcs.anl.gov/petsc/documentation/installation.html#external" target="_blank">http://www.mcs.anl.gov/petsc/documentation/installation.html#external</a>!</div><div>[0]PETSC ERROR: Unknown Mat type given: fftw!</div>
<div>[0]PETSC ERROR: ------------------------------------------------------------------------</div><div>[0]PETSC ERROR: Petsc Release Version 3.4.3, Oct, 15, 2013 </div><div>[0]PETSC ERROR: See docs/changes/index.html for recent updates.</div>
<div>[0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.</div><div>[0]PETSC ERROR: See docs/index.html for manual pages.</div><div>[0]PETSC ERROR: ------------------------------------------------------------------------</div>
<div>[0]PETSC ERROR: ./ex121 on a arch-linux2-c-debug named <a href="http://garuda.ce.caltech.edu" target="_blank">garuda.ce.caltech.edu</a> by likunt Sat Jul  5 16:07:13 2014</div><div>[0]PETSC ERROR: Libraries linked from /home/likunt/petsc-3.4.3/arch-linux2-c-debug/lib</div>
<div>[0]PETSC ERROR: Configure run at Sat Jul  5 13:01:11 2014</div><div>[0]PETSC ERROR: Configure options --with-scale-type=complex</div><div>[0]PETSC ERROR: ------------------------------------------------------------------------</div>
<div>[0]PETSC ERROR: MatSetType() line 63 in src/mat/interface/matreg.c</div><div>[0]PETSC ERROR: MatCreateFFT() line 76 in src/mat/impls/fft/fft.c</div><div>[0]PETSC ERROR: main() line 59 in src/mat/examples/tests/ex121.c</div>
</div><div><br></div><div>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.</div><div><br></div>                                          </div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener
</div></div>