[petsc-users] wrong no of nonzeros

Jed Brown jed at jedbrown.org
Sat Nov 29 20:47:09 CST 2014


Derek Gaston <friedmud at gmail.com> writes:

> I am changing the stencil of my preconditioning matrix in the middle of a
> solve a solve... and I'm running into this:

Can you PCReset() after changing the stencil?

The implementation of MatGetSubMatrices_MPIAIJ caches some intermediate
structures to speed up subsequent calls.  I'll grant that Mat should do
a better job of remembering what has changed so that it can
automatically invalidate caches in this case.  There are only two things
hard in computer science...
-------------- 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/20141129/7e661072/attachment.pgp>


More information about the petsc-users mailing list