Returns the KSP (linear solver) associated with a TS (timestepper) context.
PetscErrorCode TSGetKSP(TS ts,KSP *ksp)
Not Collective, but KSP is parallel if TS is parallel
ts -the TS context obtained from TSCreate()
ksp -the nonlinear solver context
The user can then directly manipulate the KSP context to set various
options, etc. Likewise, the user can then extract and manipulate the
KSP and PC contexts as well.
TSGetKSP() does not work for integrators that do not use KSP;
in this case TSGetKSP() returns PETSC_NULL in ksp.
timestep, get, KSP
Index of all TS routines
Table of Contents for all manual pages
Index of all manual pages