[petsc-users] Matrix with different number of rows on different processes

Jed Brown jed at 59A2.org
Thu May 12 09:03:26 CDT 2011


On Thu, May 12, 2011 at 10:48, martin flehmig <
s4245690 at mailbox.tu-dresden.de> wrote:

> is it possible to dictate how many rows a process owns on a matrix?
>
> For example:
> A is a square matrix with 10 rows/columns. There are two processes. cpu0
> should own rows 0-7 and cpu1 the others.
>

See the "m" and "n" arguments:

http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-dev/docs/manualpages/Mat/MatSetSizes.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110512/0fe91165/attachment.htm>


More information about the petsc-users mailing list