#include "petscksp.h" int KSPSolve(KSP ksp)Collective on KSP
-ksp_compute_eigenvalues | - compute preconditioned operators eigenvalues | |
-ksp_plot_eigenvalues | - plot the computed eigenvalues in an X-window | |
-ksp_compute_eigenvalues_explicitly | - compute the eigenvalues by forming the dense operator and useing LAPACK | |
-ksp_plot_eigenvalues_explicitly | - plot the explicitly computing eigenvalues | |
-ksp_view_binary | - save matrix and right hand side that define linear system to the default binary viewer (can be read later with src/ksp/examples/tutorials/ex10.c for testing solvers) | |
-ksp_view | - print the ksp data structure at the end of the system solution |
The input and output are set with KSPSetRhs() and KSPSetSolution(). The operator is specified with PCSetOperators().
Call KSPGetConvergedReason() to determine if the solver converged or failed and why. The number of iterations can be obtained from KSPGetIterationNumber().
If using a direct method (e.g., via the KSP solver KSPPREONLY and a preconditioner such as PCLU/PCILU), then its=1. See KSPSetTolerances() and KSPDefaultConverged() for more details.
Level:beginner
Location:src/ksp/ksp/interface/itfunc.c
Index of all KSP routines
Table of Contents for all manual pages
Index of all manual pages
src/mat/examples/tutorials/ex3.c.html
src/ksp/pc/examples/tutorials/ex1.c.html
src/ksp/pc/examples/tutorials/ex2.c.html
src/ksp/examples/tutorials/ex1.c.html
src/ksp/examples/tutorials/ex2.c.html
src/ksp/examples/tutorials/ex3.c.html
src/ksp/examples/tutorials/ex4.c.html
src/ksp/examples/tutorials/ex5.c.html
src/ksp/examples/tutorials/ex7.c.html
src/ksp/examples/tutorials/ex8.c.html