Sets a routine used to compute an initial guess for the problem


#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);

f - function vector
ctx - optional user-defined function context

Level: intermediate

See Also

SNESGetFunction(), SNESComputeFunction(), SNESSetJacobian()