[petsc-users] FFT using Petsc4py

Amit Itagi gcfrai at gmail.com
Mon Oct 3 15:25:06 CDT 2016


Lisandro,

Thanks. I am still a little confused.

In Petsc the steps are:

MatCreateFFT
MatGetVecsFFTW
VecScatterPetsctoFFTW
<Do the transforms>
VecScatterFFTWtoPetsc

I am trying to understand how to map these steps to Petsc4Py.

Amit


On Fri, Sep 30, 2016 at 4:16 AM, Lisandro Dalcin <dalcinl at gmail.com> wrote:

>
>
> On 27 September 2016 at 21:05, Amit Itagi <gcfrai at gmail.com> wrote:
>
>> Hello,
>>
>> 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 ?
>>
>>
> It should work out of the box by using mat.setType(Mat.Type.FFTW) before
> setup of your matrix.
>
>
> --
> Lisandro Dalcin
> ============
> Research Scientist
> Computer, Electrical and Mathematical Sciences & Engineering (CEMSE)
> Extreme Computing Research Center (ECRC)
> King Abdullah University of Science and Technology (KAUST)
> http://ecrc.kaust.edu.sa/
>
> 4700 King Abdullah University of Science and Technology
> al-Khawarizmi Bldg (Bldg 1), Office # 0109
> Thuwal 23955-6900, Kingdom of Saudi Arabia
> http://www.kaust.edu.sa
>
> Office Phone: +966 12 808-0459
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20161003/5cc78dee/attachment.html>


More information about the petsc-users mailing list