[petsc-users] General query, default preconditioner

Abhyankar, Shrirang G. abhyshr at mcs.anl.gov
Tue Sep 16 13:47:12 CDT 2014


PETSc defaults to using an ILU(0) preconditioner in serial and Block-Jacobi + ILU(0) on blocks in parallel. You can see the preconditioner details using the option -ksp_view.

Shri

-----Original Message-----
From: "Ghosh, Swarnava" <sghosh2012 at gatech.edu<mailto:sghosh2012 at gatech.edu>>
Date: Tue, 16 Sep 2014 14:10:56 -0400
To: <petsc-users at mcs.anl.gov<mailto:petsc-users at mcs.anl.gov>>
Subject: [petsc-users] General query, default preconditioner


Hello,

  I just had a general query if PETSC has something like a "default preconditioner" when preconditioner type is not set and equations are solved using KSPSolve and GMRES method.
  Specifically, I am using the following lines of code:

  KSPCreate(PETSC_COMM_WORLD,&pOfdft->ksp);
  KSPSetType(pOfdft->ksp, KSPGMRES);
  KSPSetOperators(pOfdft->ksp,A,A,SAME_NONZERO_PATTERN);
  KSPSetTolerances(pOfdft->ksp,KSPTOL,PETSC_DEFAULT,PETSC_DEFAULT,PETSC_DEFAULT);
  KSPSetFromOptions(pOfdft->ksp);
  KSPSetUp(pOfdft->ksp);

Regards,
Swarnava

--

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140916/20549cab/attachment.html>


More information about the petsc-users mailing list