Calculating local PETSC matrix

8 views
Skip to first unread message

Zachary 42!

unread,
Dec 8, 2020, 4:08:50 PM12/8/20
to dea...@googlegroups.com
Hi everyone,

I want to create a PETSC matrix across multiple nodes using MPI. This should be simply finding the appropriate local index within my loops and build up the matrix. What are some of the functionalities I should look into for this? There are multiple “partition” so I thought it would be quicker to just ask.

There is also potentially needing to send ghost elements to neighboring ranks so any suggestions with that using these PETSC matrices would be appreciated!

Cheers,

Zachary

Wolfgang Bangerth

unread,
Dec 8, 2020, 4:25:01 PM12/8/20
to dea...@googlegroups.com
On 12/8/20 2:08 PM, Zachary 42! wrote:
>
> I want to create a PETSC matrix across multiple nodes using MPI. This should be simply finding the appropriate local index within my loops and build up the matrix. What are some of the functionalities I should look into for this? There are multiple “partition” so I thought it would be quicker to just ask.
>
> There is also potentially needing to send ghost elements to neighboring ranks so any suggestions with that using these PETSC matrices would be appreciated!

That's all handled automatically. Take a look at step-40 or, in fact, any of
the other tutorial programs that run in parallel.

Best
W.

--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/

Reply all
Reply to author
Forward
0 new messages