[petsc-users] Matrix is missing diagonal entry

Jed Brown jed at jedbrown.org
Tue Oct 18 10:45:41 CDT 2016


"Kong, Fande" <fande.kong at inl.gov> writes:

> Hi Developers,
>
> Any reason to force users provide a matrix which does not miss any diagonal
> entries when using a LU-type solver?

Automatically adding the entries for incomplete factorization is a
slight increase in complexity and means that "ILU(0)" actually has some
fill.  Note that a literal ILU(0) cannot work if there are missing
diagonal entries.

It's probably not a significant code complexity difference for LU.

> Sometime, it is impossible to have all diagonal entries in a matrix, that
> is, the matrix has to miss some diagonal entries. For example, there is a
> saddle-point matrix from the discretization of incomprehensible equations,
> and the lower part of the matrix is a zero block. The matrix usually looks
> like:
>
> | A   B^T  |
> | B    0     |

Just insert explicit zeros on the diagonal.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 800 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20161018/770810cc/attachment.pgp>


More information about the petsc-users mailing list