[petsc-dev] DMGetMatrix --> DMGetMatrices?

Jed Brown jedbrown at mcs.anl.gov
Fri Feb 10 16:02:29 CST 2012


On Fri, Feb 10, 2012 at 15:59, Dmitry Karpeev <karpeev at mcs.anl.gov> wrote:

> As a separate matter, however, should preallocated, but not assembled
> matrices be able to be duplicated or copied?
>

It doesn't even make semantic sense for Copy.

Duplicate only makes sense in that the sizes and types get set, but
obviously the sparsity can't be set, so it doesn't have the (stated)
semantics of Duplicate.

As currently implemented, MatDuplicate() and MatCopy() will refuse to
> operate on a matrix that is !assembled.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120210/25acda6c/attachment.html>


More information about the petsc-dev mailing list