<div dir="ltr"><div>Lisandro,</div><div><br></div><div>Thanks. I am still a little confused.</div><div><br></div>In Petsc the steps are:<div><br></div><div>MatCreateFFT</div><div>MatGetVecsFFTW</div><div>VecScatterPetsctoFFTW</div><div><Do the transforms></div><div>VecScatterFFTWtoPetsc</div><div><br></div><div>I am trying to understand how to map these steps to Petsc4Py.</div><div><br></div><div>Amit</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 30, 2016 at 4:16 AM, Lisandro Dalcin <span dir="ltr"><<a href="mailto:dalcinl@gmail.com" target="_blank">dalcinl@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On 27 September 2016 at 21:05, Amit Itagi <span dir="ltr"><<a href="mailto:gcfrai@gmail.com" target="_blank">gcfrai@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I am looking at the Petsc FFT interfaces. I was wondering if a parallel FFT can be performed within a Petsc4Py code. If not, what would be the best way to use the Petsc interfaces for FFT from Petsc4Py ?</div><div><br></div></div></blockquote><div><br></div></span><div>It should work out of the box by using mat.setType(Mat.Type.FFTW) before setup of your matrix.</div></div><br clear="all"><div><br></div>-- <br><div class="m_-1037385990065751590gmail_signature" data-smartmail="gmail_signature">Lisandro Dalcin<br>============<br>Research Scientist<br>Computer, Electrical and Mathematical Sciences & Engineering (CEMSE)<br>Extreme Computing Research Center (ECRC)<br>King Abdullah University of Science and Technology (KAUST)<br><a href="http://ecrc.kaust.edu.sa/" target="_blank">http://ecrc.kaust.edu.sa/</a><br><br>4700 King Abdullah University of Science and Technology<br>al-Khawarizmi Bldg (Bldg 1), Office # 0109<br>Thuwal 23955-6900, Kingdom of Saudi Arabia<br><a href="http://www.kaust.edu.sa" target="_blank">http://www.kaust.edu.sa</a><br><br>Office Phone: <a href="tel:%2B966%2012%20808-0459" value="+966128080459" target="_blank">+966 12 808-0459</a></div>
</div></div>
</blockquote></div><br></div>