MatShellGetContext#
Returns the user-provided context associated with a MATSHELL shell matrix.
Synopsis#
#include "petscmat.h"
PetscErrorCode MatShellGetContext(Mat mat, PetscCtxRt ctx)
Not Collective
Input Parameter#
mat - the matrix, should have been created with
MatCreateShell()
Output Parameter#
ctx - the user provided context
Fortran Notes#
This only works when the context is a Fortran derived type or a PetscObject. Declare ctx with
type(tUsertype), pointer :: ctx
See Also#
Matrices, Mat, MATSHELL, MatCreateShell(), MatShellSetOperation(), MatShellSetContext()
Level#
advanced
Location#
Examples#
src/mat/tutorials/ex20f.F90
src/mat/tutorials/ex6f.F90
src/mat/tests/ex203.c
src/mat/tests/ex205.c
src/mat/tests/ex218.c
src/mat/tests/ex221.c
src/mat/tests/ex235.c
src/mat/tests/ex69.c
src/mat/tests/ex70.c
src/mat/tests/ex88.c
Implementations#
MatShellGetContext_Shell() in src/mat/impls/shell/shell.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages