function
   
petsc-3.5.4 2015-05-23
err = rhsfunction(dm,x,f) % % Example of a function needed by PetscDMSetFunction % For linear problems x is ignored % err = 0; f(:) = ones(length(f(:)));