[petsc-users] about MatTranspose

Jed Brown jedbrown at mcs.anl.gov
Thu Sep 1 10:29:44 CDT 2011


On Thu, Sep 1, 2011 at 10:24, Likun Tan <likunt at andrew.cmu.edu> wrote:

> I used MatCreate() to create a non-square matrix B, and set values to it
> in parallel. Now i want to get the tranpose of it to solve Ax=B', where A
> is SeqDense.
>
> I define a SeqDense C=B' and use MatTranspose() to get it, then apply
> MatMatSolve(fact,C,x), but i get the following error:
>
> [0]PETSC ERROR: --------------------- Error Message
> ------------------------------------
> [0]PETSC ERROR: Nonconforming object sizes!
> [0]PETSC ERROR: Mat A,Mat B: local dim 27 14!
>

When you send error messages, please send the whole stack trace.

It looks like C=B' is not being partitioned correctly.
Did you take my earlier suggestions about how to partition this problem?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110901/763ea347/attachment.htm>


More information about the petsc-users mailing list