petsc-master 2018-10-20
Report Typos and Errors

KSPCreate

Creates the default KSP context.

Synopsis

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

Input Parameter

comm -MPI communicator

Output Parameter

ksp -location to put the KSP context

Notes

The default KSP type is GMRES with a restart of 30, using modified Gram-Schmidt orthogonalization.

Keywords

KSP, create, context

See Also

KSPSetUp(), KSPSolve(), KSPDestroy(), KSP

Level

beginner

Location

src/ksp/ksp/interface/itcreate.c

Examples

src/dm/impls/stag/examples/tutorials/ex1.c.html
src/dm/impls/stag/examples/tutorials/ex2.c.html
src/dm/impls/stag/examples/tutorials/ex3.c.html
src/dm/impls/stag/examples/tutorials/ex4.c.html
src/ksp/pc/examples/tutorials/ex1.c.html
src/ksp/pc/examples/tutorials/ex2.c.html
src/ksp/pc/examples/tutorials/ex3.c.html
src/ksp/ksp/examples/tutorials/ex1.c.html
src/ksp/ksp/examples/tutorials/ex2.c.html
src/ksp/ksp/examples/tutorials/ex3.c.html
src/ksp/ksp/examples/tutorials/ex5.c.html

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_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_CGGLTR in src/ksp/ksp/impls/cg/gltr/gltr.c
KSPCreate_GROPPCG in src/ksp/ksp/impls/cg/groppcg/groppcg.c
KSPCreate_CGNASH in src/ksp/ksp/impls/cg/nash/nash.c
KSPCreate_PIPECG in src/ksp/ksp/impls/cg/pipecg/pipecg.c
KSPCreate_PIPECGRR in src/ksp/ksp/impls/cg/pipecgrr/pipecgrr.c
KSPCreate_PIPELCG in src/ksp/ksp/impls/cg/pipelcg/pipelcg.c
KSPCreate_CGSTCG 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_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