MatLMVMSetJ0KSP#

Allows the user to provide a pre-configured KSP solver for the initial inverse-Jacobian approximation.

Synopsis#

#include "petscksp.h" 
PetscErrorCode MatLMVMSetJ0KSP(Mat B, KSP J0ksp)

Input Parameters#

  • B - A MATLMVM matrix

  • J0ksp - KSP solver for the initial inverse-Jacobian application

Note#

The KSP solver should already contain all the operators necessary to perform the inversion. The MATLMVM matrix only calls KSPSolve() without changing any other options.

If the sizes of B have not been specified (using MatSetSizes() or MatSetLayouts()) before MatLMVMSetJ0KSP() is called, then B will adopt the sizes and layouts of the operators of J0ksp, and these sizes will be final.

See Also#

KSP: Linear System Solvers, LMVM Matrices, MATLMVM, MatLMVMGetJ0KSP()

Level#

advanced

Location#

src/ksp/ksp/utils/lmvm/lmvmutils.c


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