[petsc-users] ELEMENTAL Matrix

Jin, Shuangshuang Shuangshuang.Jin at pnnl.gov
Wed Jun 26 17:37:21 CDT 2013


Hello, can anyone tell me how does a MATELEMENTAL type matrix store its values in PETSC across different processors?

For example, if I have a 4X4 ELEMENTAL matrix, when I use 1 processor, all of the element are stored on p0.

p0 p0 p0 p0
p0 p0 p0 p0
p0 p0 p0 p0
p0 p0 p0 p0

What about 2 processor, is it something as below?

p0 p0 p1 p1
p0 p0 p1 p1
p0 p0 p1 p1
p0 p0 p1 p1

And 4 processor?

p0 p2  p0 p2
p1 p3 p1 p3
p0 p2 p0 p2
p1 p3 p1 p3

Finally, if I have 12x12 Elemental matrix with 4 processors, the data will be stored as the following?

p0 p0 p0 p2 p2 p2 p0 p0 p0 p2 p2 p2
p0 p0 p0 p2 p2 p2 p0 p0 p0 p2 p2 p2
p0 p0 p0 p2 p2 p2 p0 p0 p0 p2 p2 p2
p1 p1 p1 p3 p3 p3 p1 p1 p1 p3 p3 p3
p1 p1 p1 p3 p3 p3 p1 p1 p1 p3 p3 p3
p1 p1 p1 p3 p3 p3 p1 p1 p1 p3 p3 p3
p0 p0 p0 p2 p2 p2 p0 p0 p0 p2 p2 p2
p0 p0 p0 p2 p2 p2 p0 p0 p0 p2 p2 p2
p0 p0 p0 p2 p2 p2 p0 p0 p0 p2 p2 p2
p1 p1 p1 p3 p3 p3 p1 p1 p1 p3 p3 p3
p1 p1 p1 p3 p3 p3 p1 p1 p1 p3 p3 p3
p1 p1 p1 p3 p3 p3 p1 p1 p1 p3 p3 p3

I'm trying to find out a clue to set up the values of my 12x12 Elemental Matrix correctly.

Thanks,
Shuangshuang

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130626/fa02e3ac/attachment.html>


More information about the petsc-users mailing list