PETSc version 3.15.5
SNESSetComputeInitialGuess
Sets a routine used to compute an initial guess for the problem 
Synopsis
#include "petscsnes.h"  
PetscErrorCode  SNESSetComputeInitialGuess(SNES snes,PetscErrorCode (*func)(SNES,Vec,void*),void *ctx)
Logically Collective on SNES
Input Parameters
|  | snes | - the SNES context | 
|  | func | - function evaluation routine | 
|  | ctx | - [optional] user-defined context for private data for the
function evaluation routine (may be NULL) | 
Calling sequence of func
   func (SNES snes,Vec x,void *ctx);
|  | ctx | - optional user-defined function context | 
See Also
 SNESGetFunction(), SNESComputeFunction(), SNESSetJacobian()
Level
intermediate
Location
src/snes/interface/snes.c
Examples
src/snes/tutorials/ex18.c.html
src/snes/tutorials/ex48.c.html
src/snes/tutorials/ex58.c.html
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages