[petsc-users] transform in a block matrix

Matthew Knepley knepley at gmail.com
Wed Apr 18 07:04:23 CDT 2018


On Wed, Apr 18, 2018 at 8:01 AM, Sonia Pozzi <sonia.pozzi at usi.ch> wrote:

> Dear Petsc users and developers,
>
> I have a MPIAIJ matrix (already assembled) and I would like to transform
> it in a block matrix with of block dimension 3.
> Is there a easy way to do that?
>

I believe that


http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatConvert.html

will work.

  Thanks,

     Matt


> Thank you in advance,
>
> Sonia
>
>
> Ph.D. Student
> Group of Prof. Rolf Krause
> Institute of Computational Science
> Università della Svizzera italiana
> Center for Computation Medicine in Cardiology
> Via Giuseppe Buffi, 13
> <https://maps.google.com/?q=Via+Giuseppe+Buffi,+13+CH-6900+Lugano+Switzerland&entry=gmail&source=g>
> CH-6900 Lugano
> <https://maps.google.com/?q=Via+Giuseppe+Buffi,+13+CH-6900+Lugano+Switzerland&entry=gmail&source=g>
> Switzerland
> <https://maps.google.com/?q=Via+Giuseppe+Buffi,+13+CH-6900+Lugano+Switzerland&entry=gmail&source=g>
>
> Email: pozzis at usi.ch
> Phone: +41 58 666 4972
>
>


-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

https://www.cse.buffalo.edu/~knepley/ <http://www.caam.rice.edu/~mk51/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20180418/3789b0d9/attachment.html>


More information about the petsc-users mailing list