petsc-3.9.4 2018-09-11
Report Typos and Errors

SNESShellSetContext

sets the context for a shell SNES

Synopsis

#include "petscsnes.h"   
PetscErrorCode  SNESShellSetContext(SNES snes,void *ctx)
Logically Collective on SNES

Input Parameters

snes - the shell SNES
ctx - the context

Fortran Notes: The context can only be an integer or a PetscObject unfortunately it cannot be a Fortran array or derived type.

See Also

SNESCreateShell(), SNESShellGetContext()

Level

advanced

Location

src/snes/impls/shell/snesshell.c

Examples

src/snes/examples/tutorials/ex35.c.html

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