int SNESSetGradient(SNES snes,Vec r,int (*func)(SNES,Vec,Vec,void*),void *ctx)Collective on SNES
| snes | - the SNES context |
| func | - function evaluation routine |
| ctx | - optional user-defined context for private data for the gradient evaluation routine (may be PETSC_NULL) |
| r | - vector to store gradient value |
func (SNES, Vec x, Vec g, void *ctx);
| x | - input vector |
| g | - gradient vector |
| ctx | - optional user-defined gradient context |
Location: src/snes/interface/snes.c
SNES Index
Table of Contents