#include "petscmat.h" PetscErrorCode MatFactorCreateSchurComplement(Mat F,Mat* S,MatFactorSchurStatus* status)Logically Collective on Mat
F | - the factored matrix obtained by calling MatGetFactor() from PETSc-MUMPS interface | |
S | - location where to return the Schur complement, can be NULL | |
status | - the status of the Schur complement matrix, can be NULL |
The routine provides a copy of the Schur matrix stored within the solver data structures. The caller must destroy the object when it is no longer needed. If MatFactorInvertSchurComplement() has been called, the routine gets back the inverse.
Use MatFactorGetSchurComplement() to get access to the Schur complement matrix inside the factored matrix instead of making a copy of it (which this function does)
See MatCreateSchurComplement() or MatGetSchurComplement() for ways to create virtual or approximate Schur complements.