#include "petscdm.h" PetscErrorCode DMSetFunction(DM dm,PetscErrorCode (*f)(DM,Vec,Vec))Logically Collective on DM
dm | - the DM object | |
f | - the function to compute (use PETSC_NULL to cancel a previous function that was set) |
Notes: This sets both the function for function evaluations and the function used to compute Jacobians via finite differences if no Jacobian computer is provided with DMSetJacobian(). Canceling cancels the function, but not the function used to compute the Jacobian.
Level:intermediate
Location:src/dm/interface/dm.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages