petsc-3.7.1 2016-05-15
Report Typos and Errors

SNESSetComputeApplicationContext

Sets an optional function to compute a user-defined context for the nonlinear solvers.

Synopsis

#include "petscsnes.h"  
PetscErrorCode  SNESSetComputeApplicationContext(SNES snes,PetscErrorCode (*compute)(SNES,void**),PetscErrorCode (*destroy)(void**))
Logically Collective on SNES Many br

Input Parameters

snes - the SNES context Many br
compute - function to compute the context Many br
destroy - function to destroy the context Many br

Many br

Notes

This function is currently not available from Fortran. Many br

Keywords

SNES, nonlinear, set, application, context

See Also

SNESGetApplicationContext(), SNESSetComputeApplicationContext(), SNESGetApplicationContext()

Level:intermediate
Location:
src/snes/interface/snes.c
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages

Examples

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