[petsc-dev] DMGetMatrix --> DMGetMatrices?

Dmitry Karpeev karpeev at mcs.anl.gov
Fri Feb 10 00:02:36 CST 2012


On Thu, Feb 9, 2012 at 11:56 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:

> On Thu, Feb 9, 2012 at 23:51, Dmitry Karpeev <karpeev at mcs.anl.gov> wrote:
>
>> Good point.  It is still strange, however, that SNES insists on using the
>> same Mat obtained from DMGetMatrix for J and P.
>
>
> Oh, you're concerned about when SNES creates a Mat automatically (getting
> it out of the DM)?
>

Yes. And, by the way, preallocation for J and P could be different (e.g.,
mass matrix vs lumped mass matrix for projection problems).  As could be
the preferred MatType.

Dmitry.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120210/97f1b4b9/attachment.html>


More information about the petsc-dev mailing list