[petsc-users] Using KSPSetOperators with SAME_NONZERO_PATTERN

Matthew Knepley knepley at gmail.com
Thu Aug 28 04:45:59 CDT 2014


On Thu, Aug 28, 2014 at 3:33 AM, TAY wee-beng <zonexo at gmail.com> wrote:

> Hi,
>
> I've been using :
>
> call KSPSetOperators(ksp_semi_xyz,A_semi_xyz,A_semi_xyz,SAME_
> NONZERO_PATTERN,ierr)
>
> in my code for a long time when solving for the linear equations.
>
> However, recently I found that my code can't run properly (diverged,
> segmentation fault). After debugging, I realised that I had to change from
> the above to
>
> call KSPSetOperators(ksp_semi_xyz,A_semi_xyz,A_semi_xyz,ierr)
>
> May I know if something has changed in the new versions of PETSc?


Yes, this is in the Changes file. We automatically determine whether the PC
matrix
has changed, and whether it has the same structure.

   Matt


>
> --
> Thank you
>
> Yours sincerely,
>
> TAY wee-beng
>
>


-- 
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/20140828/e69af751/attachment.html>


More information about the petsc-users mailing list