[petsc-users] Exploiting symmetry with direct solvers
Hong
hzhang at mcs.anl.gov
Wed Apr 8 22:06:23 CDT 2015
David:
>
>>> Mumps supports Cholesky factorization for symmetric, and symmetric+spd
>> matrices. You may consult mumps user manual.
>>
>
>
> OK, thanks. But I was also wondering about the PETSc interface to MUMPS.
>
> I consulted the MUMPS manual, but it just says that you need to specify
> "SYM=1" in order to get an LDL^T factorization. I gather that if we set
> MatSetOption(A,MAT_SPD,PETSC_TRUE); in PETSc then that will tell MUMPS to
> use SYM=1, right?
>
When user requests Cholesky factorization, PETSc sets "SYM=2" as default;
If user sets flag of spd, then the interface uses "SYM=1" in order to get
an LDL^T factorization. See MatGetFactor_xxx_mumps() in
petsc/src/mat/impls/aij/mpi/mumps/mumps.c:
...
B->factortype = MAT_FACTOR_CHOLESKY;
if (A->spd_set && A->spd) mumps->sym = 1;
else mumps->sym = 2;
...
Hong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150408/ecd06cc8/attachment.html>
More information about the petsc-users
mailing list