[petsc-dev] DMGetMatrix --> DMGetMatrices?
Jed Brown
jedbrown at mcs.anl.gov
Fri Feb 10 15:51:58 CST 2012
On Fri, Feb 10, 2012 at 15:49, Dmitry Karpeev <karpeev at mcs.anl.gov> wrote:
> Yes, DMGetMatrix responds the same way wherever you call it from, but
> what will happen if you call DMSetMatrixPreallocateOnly() and use that DM
> with a KSP?
> It seems to me that once DMSetMatrixPreallocateOnly() has been called,
> that DM is only usable from SNES.
>
Huh? DMGetMatrix() never puts useful values in the matrix, it's just the
difference between specifying the number of nonzeros per row and placing
those nonzeros where they belong.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120210/80bb8d62/attachment.html>
More information about the petsc-dev
mailing list