[petsc-users] Recomputing ksp

Jed Brown jed at jedbrown.org
Thu Jul 9 12:58:54 CDT 2015


Michele Rosso <mrosso at uci.edu> writes:

> Hi,
>
> I need to recompute the preconditioner every once in a while. 

KSPSetOperators will update the preconditioner unless KSPSetReusePreconditioner has been set.

> So far I do this "manually", i.e. I destroy ksp and re-create and
> reset it whenever needed.  I am wondering if there is a cleaner way of
> doing this via a PETSc function. I found KSPreset but there are no
> examples about it so I am not sure it is what I am looking for.  Could
> you help please?
>
>
> Thanks,
> Michele
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150709/0e213f4b/attachment.pgp>


More information about the petsc-users mailing list