[petsc-users] Possible Bug ?

Sajid Ali sajidsyed2021 at u.northwestern.edu
Mon Apr 22 18:46:39 CDT 2019

This can be tracked down to n vs N being used. The vector in the second
loop is created using N while MatCreateVecsFFTW uses n (for real numbers).
n!=N and hence the error.

If the lines 50/51 and line 91 are switched to MatCreateVecsFFW instead of
MatGetVecs and VecCreateSeq respectively, the example would work for real
numbers as well.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20190422/1d32a675/attachment.html>

More information about the petsc-users mailing list