#include "petscmat.h" PetscErrorCode MatKAIJGetAIJ(Mat A,Mat *B)Not Collective, but if the KAIJ matrix is parallel, the AIJ matrix is also parallel
A | - the KAIJ matrix |
B | - the AIJ matrix |
Notes: The reference count on the AIJ matrix is not increased so you should not destroy it.