Hi,

I am trying to SNES with Fortran.
In FormFunction in SNESSetFuction, i need to call other subroutine and many
array to calculate F(x), but seems like SNESSetFunction only allows one
user-defined array as input argument, say, "dummy" in the next line.

CALL SNESSetFunction(snes,r,FormFunction,dummy,ierr)

How can I pass more than one array through SNESSetFunction to FormFunction?

I am a beginner for PETSc, so the question maybe naive.

Thanks,
Lo

Reply via email to