[petsc-dev] Using PETSc MatIS, how to get local matrix (= one domain) before and after assembly ?

Franck Houssen franck.houssen at inria.fr
Sun May 21 11:23:00 CDT 2017


I have a 3x3 global matrix is built (diag: 1, 2, 1): it's made of 2 overlapping 2x2 local matrix (diag: 1, 1). 
Getting non assembled local matrix is OK with MatISGetLocalMat. 
How to get assembled local matrix (initial local matrix + neigbhor contributions on the borders) ? (expected result is diag: 2, 1) 

Franck 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20170521/c714768f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: matISLocalMat.cpp
Type: text/x-c++src
Size: 2354 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20170521/c714768f/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: matISLocalMat.log
Type: text/x-log
Size: 2285 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20170521/c714768f/attachment-0001.bin>


More information about the petsc-dev mailing list