<div dir="ltr">Dear all,<div><br></div><div>Happy new year!</div><div><br></div><div>I'm using the matrix-free method to solve NS equations. I call the SNESSetFunction to set the RHS function. I think SNES also uses that RHS function to evaluate the matrix vector product. </div>
<div><br></div><div>But I want to set one function to evaluate the residual, and another different function to evaluate the matrix vector product. How can I do that? Does MatMFFDSetFunction do this job?</div><div><br></div>
<div>Any suggestion is appreciated. Thank you.</div><div><br></div><div><br></div><div>Song</div></div>