[petsc-users] about snes

Jed Brown jed at 59A2.org
Wed Apr 14 08:46:27 CDT 2010


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


More information about the petsc-users mailing list