[petsc-users] How to set LU factorization in KSP

Tsung-Hsing Chen barrydog505 at gmail.com
Mon Dec 17 08:09:33 CST 2018


Thank you for your help.

Moritz.Huck at isea.rwth-aachen.de <Moritz.Huck at isea.rwth-aachen.de> 於
2018年12月17日 週一 下午10:01寫道:

> Hi,
>
> you need to set the KSP type  to KSPPREONLY and the PC type to LU as you
> did.
>
> Then it will only call “the preconditioner” which is in this case the LU
> factorization.
>
>
>
> Best Regards,
>
> Moritz
>
>
>
> *Von:* petsc-users <petsc-users-bounces at mcs.anl.gov> *Im Auftrag von *Tsung-Hsing
> Chen via petsc-users
> *Gesendet:* Montag, 17. Dezember 2018 14:55
> *An:* PETSc users list <petsc-users at mcs.anl.gov>
> *Betreff:* [petsc-users] How to set LU factorization in KSP
>
>
>
> Hi,
>
>
>
> I'm looking for the function in PetscKSP that can do LU factorization.
>
> What I'm using now is PCSetType(pc, PCLU), and not setting ksptype.
>
> Is this the LU factorization setting of KSP?
>
>
>
> Thanks,
>
>
>
> Best regards,
>
> Barry
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20181217/f42a00c1/attachment.html>


More information about the petsc-users mailing list