#include "petscsnes.h" PetscErrorCode SNESComputeMFFunction(SNES snes,Vec x,Vec y)Collective on SNES
snes | - the SNES context | |
x | - input vector |
y | - function vector, as set by SNESSetMFFunction() |
Since this function is intended for use with finite differencing it does not subtract the right hand side vector provided with SNESSolve() while SNESComputeFunction() does. As such, this routine cannot be used with MatMFFDSetBase() with a provided F function value even if it applies the same function as SNESComputeFunction() if a SNESSolve() right hand side vector is use because the two functions difference would include this right hand side function.