2010/9/30 Николай Кутузов <kutuzovnp at gmail.com>: > how should i use that patch? It was for Lisandro, but if you have checked out petsc4py trunk, you can hg import jed-setifunction.patch But don't bother, just provide the residual vector, and skip the ts.setIJacobian() call if you don't have a Jacobian. Jed