KSPEKSMSetKSP#

Sets the internal KSP objects to be used by EKSM.

Synopsis#

#include "petscksp.h" 
PetscErrorCode KSPEKSMSetKSP(KSP ksp, KSP ksps, KSP kspm)

Not Collective, but all KSP objects must live on the same MPI_Comm

Input Parameters#

  • ksp - the Krylov space solver context

  • ksps - the KSP context used internally for linear systems with coefficient matrix \(K + \varsigma M\), or NULL to keep the current one

  • kspm - the KSP context used internally for linear systems with coefficient matrix \(M\), or NULL to keep the current one

Notes#

This routine is rarely needed. The most common usage is to call KSPEKSMGetKSP() to extract the internal objects and then configure them.

Each KSP object actually passed in has its reference count increased by one and the internal object it replaces has its reference count decreased by one. An argument passed as NULL leaves the corresponding internal object, and its reference count, unchanged.

See Also#

KSP: Linear System Solvers, KSPEKSM, KSPEKSMGetKSP()

Level#

intermediate

Location#

src/ksp/ksp/impls/eksm/eksm.c

Implementations#

KSPEKSMSetKSP_EKSM() in src/ksp/ksp/impls/eksm/eksm.c


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