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

Moritz.Huck at isea.rwth-aachen.de Moritz.Huck at isea.rwth-aachen.de
Mon Dec 17 08:00:58 CST 2018


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/08aa3e38/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 7669 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20181217/08aa3e38/attachment.p7s>


More information about the petsc-users mailing list