[petsc-users] newbie question on the parallel allocation of matrices

Jed Brown jedbrown at mcs.anl.gov
Fri Dec 2 06:32:24 CST 2011

On Fri, Dec 2, 2011 at 03:32, Treue, Frederik <frtr at risoe.dtu.dk> wrote:

> OK, but that example seems to assume that you wish to connect only one
> matrix (the Jacobian) to a DA – I wish to specify many and I think I found
> this done in ksp ex39, is that example doing anything deprecated or will
> that work for me, e.g. with the various basic mat routines (matmult,
> matAXPY etc.) in a multiprocessor setup?

What do you mean by wanting many matrices? How do you want to use them?
There is DMCreateMatrix() (misnamed DMGetMatrix() in petsc-3.2), which you
can use as many times as you want.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20111202/7e5f22f0/attachment-0001.htm>

More information about the petsc-users mailing list