On Wed, 14 Apr 2010 21:25:58 +0800 (CST), ??? <chenleping at yahoo.cn> wrote:
> petsc teams,
> 
> When I used the snes,as follows,
> 
> call SNESSetFunction(snes,r,FormFunction,PETSC_NULL_OBJECT,ierr)
> ?
> subroutine FormFunction(snes,x,r,dummy,ierr)

The fourth argument is for all of this data.  Here is an F90 example.

  
http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/src/snes/examples/tutorials/ex5f90.F.html

Jed

Reply via email to