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-boun...@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@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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to