[petsc-users] schurcomplement of a rectangular system

Patrick Lacasse patrick.m.lacasse at gmail.com
Tue Nov 11 08:51:01 CST 2014


Hi,

  in my works, I'm computing a formula (involving an L2 projection) of the
form:

(D - M^{-1} N) n

where D,M and B are matrices and n is a vector.

Operator (D - M^{-1} N) appears to be the Schur complement of the system
( M   N )
(  I    D )
and it is convenient for me to use a Mat of type schurcomplement to compute
it.
However, my matrix D is not a square matrix (this system is not invertible,
it is rectangular).

Assertions in src/ksp/ksp/utils/schurm.c prohibit the use of
schurcomplement for rectangular system, but I can't figure where it is
needed by schurcomplement itself.
Could it be possible to remove those two assertions (see my patch)?


Patrick Lacasse
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20141111/b82f3470/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Remove-an-assertion-in-MatSchurComplement.patch
Type: text/x-patch
Size: 1638 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20141111/b82f3470/attachment.bin>


More information about the petsc-users mailing list