KSPCreate#

Creates the KSP context.

Synopsis#

#include "petscksp.h" 
PetscErrorCode KSPCreate(MPI_Comm comm, KSP *inksp)

Collective

Input Parameter#

  • comm - MPI communicator

Output Parameter#

  • inksp - location to put the KSP context

Note#

The default KSPType is KSPGMRES with a restart of 30, using modified Gram-Schmidt orthogonalization.

See Also#

KSP: Linear System Solvers, KSPSetUp(), KSPSolve(), KSPDestroy(), KSP, KSPGMRES, KSPType

Level#

beginner

Location#

src/ksp/ksp/interface/itcreate.c

Examples#

src/dm/impls/stag/tutorials/ex1.c
src/dm/impls/stag/tutorials/ex2.c
src/ksp/pc/tutorials/ex4.c
src/ksp/pc/tutorials/ex3.c
src/dm/impls/swarm/tutorials/ex1f90.F90
src/dm/impls/stag/tutorials/ex8.c
src/ksp/pc/tutorials/ex1.c
src/ksp/pc/tutorials/ex2.c
src/dm/impls/stag/tutorials/ex3.c
src/dm/impls/stag/tutorials/ex4.c

Implementations#

KSPCreate_BCGS() in src/ksp/ksp/impls/bcgs/bcgs.c
KSPCreate_FBCGS() in src/ksp/ksp/impls/bcgs/fbcgs/fbcgs.c
KSPCreate_FBCGSR() in src/ksp/ksp/impls/bcgs/fbcgsr/fbcgsr.c
KSPCreate_PIPEBCGS() in src/ksp/ksp/impls/bcgs/pipebcgs/pipebcgs.c
KSPCreate_QMRCGS() in src/ksp/ksp/impls/bcgs/qmrcgs/qmrcgs.c
KSPCreate_BCGSL() in src/ksp/ksp/impls/bcgsl/bcgsl.c
KSPCreate_BiCG() in src/ksp/ksp/impls/bicg/bicg.c
KSPCreate_CG() in src/ksp/ksp/impls/cg/cg.c
KSPCreate_CGLS() in src/ksp/ksp/impls/cg/cgls.c
KSPCreate_CGNE() in src/ksp/ksp/impls/cg/cgne/cgne.c
KSPCreate_GLTR() in src/ksp/ksp/impls/cg/gltr/gltr.c
KSPCreate_GROPPCG() in src/ksp/ksp/impls/cg/groppcg/groppcg.c
KSPCreate_NASH() in src/ksp/ksp/impls/cg/nash/nash.c
KSPCreate_PIPECG() in src/ksp/ksp/impls/cg/pipecg/pipecg.c
KSPCreate_PIPECG2() in src/ksp/ksp/impls/cg/pipecg2/pipecg2.c
KSPCreate_PIPECGRR() in src/ksp/ksp/impls/cg/pipecgrr/pipecgrr.c
KSPCreate_PIPELCG() in src/ksp/ksp/impls/cg/pipelcg/pipelcg.c
KSPCreate_PIPEPRCG() in src/ksp/ksp/impls/cg/pipeprcg/pipeprcg.c
KSPCreate_STCG() in src/ksp/ksp/impls/cg/stcg/stcg.c
KSPCreate_CGS() in src/ksp/ksp/impls/cgs/cgs.c
KSPCreate_Chebyshev() in src/ksp/ksp/impls/cheby/cheby.c
KSPCreate_CR() in src/ksp/ksp/impls/cr/cr.c
KSPCreate_PIPECR() in src/ksp/ksp/impls/cr/pipecr/pipecr.c
KSPCreate_FCG() in src/ksp/ksp/impls/fcg/fcg.c
KSPCreate_PIPEFCG() in src/ksp/ksp/impls/fcg/pipefcg/pipefcg.c
KSPCreate_FETIDP() in src/ksp/ksp/impls/fetidp/fetidp.c
KSPCreate_GCR() in src/ksp/ksp/impls/gcr/gcr.c
KSPCreate_PIPEGCR() in src/ksp/ksp/impls/gcr/pipegcr/pipegcr.c
KSPCreate_AGMRES() in src/ksp/ksp/impls/gmres/agmres/agmres.c
KSPCreate_DGMRES() in src/ksp/ksp/impls/gmres/dgmres/dgmres.c
KSPCreate_FGMRES() in src/ksp/ksp/impls/gmres/fgmres/fgmres.c
KSPCreate_GMRES() in src/ksp/ksp/impls/gmres/gmres.c
KSPCreate_LGMRES() in src/ksp/ksp/impls/gmres/lgmres/lgmres.c
KSPCreate_PGMRES() in src/ksp/ksp/impls/gmres/pgmres/pgmres.c
KSPCreate_PIPEFGMRES() in src/ksp/ksp/impls/gmres/pipefgmres/pipefgmres.c
KSPCreate_HPDDM() in src/ksp/ksp/impls/hpddm/hpddm.cxx
KSPCreate_IBCGS() in src/ksp/ksp/impls/ibcgs/ibcgs.c
KSPCreate_LCD() in src/ksp/ksp/impls/lcd/lcd.c
KSPCreate_LSQR() in src/ksp/ksp/impls/lsqr/lsqr.c
KSPCreate_MINRES() in src/ksp/ksp/impls/minres/minres.c
KSPCreate_PREONLY() in src/ksp/ksp/impls/preonly/preonly.c
KSPCreate_QCG() in src/ksp/ksp/impls/qcg/qcg.c
KSPCreate_Richardson() in src/ksp/ksp/impls/rich/rich.c
KSPCreate_SYMMLQ() in src/ksp/ksp/impls/symmlq/symmlq.c
KSPCreate_TCQMR() in src/ksp/ksp/impls/tcqmr/tcqmr.c
KSPCreate_TFQMR() in src/ksp/ksp/impls/tfqmr/tfqmr.c
KSPCreate_TSIRM() in src/ksp/ksp/impls/tsirm/tsirm.c


Index of all KSP routines
Table of Contents for all manual pages
Index of all manual pages