[petsc-users] DIVERGED_INDEFINITE_PC in algebraic multigrid

Jed Brown jed at jedbrown.org
Thu May 29 20:07:09 CDT 2014


Mark Adams <mfadams at lbl.gov> writes:
>> thank you for your input and sorry my late reply: I saw your email only
>> now.
>> By setting up the solver each time step you mean re-defining the KSP
>> context every time?
>>
>
> THe simplest thing is to just delete the object and create it again.  THere
> are "reset" methods that do the same thing semantically but it is probably
> just easier to destroy the KSP object and recreate it and redo your setup
> code.

Mark, if PCReset (via KSPReset) does not produce the same behavior as
destroying the KSP and recreating it, it is a bug.  I think this is the
case, but if it's not, it needs to be fixed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140530/5ef76f7d/attachment.pgp>


More information about the petsc-users mailing list