<div dir="ltr">Hi,<div><br></div><div>I am using PETSc TAO to solve the following equation obtained from minimizing certain energy and constitutive model:</div><div><br></div><div>u_xx - u - u_t =0    (1)</div><div><br></div><div>For simplicity, the coefficients are neglected. </div><div>In the routine to form function value and gradient, I use (1) to form my gradient vector, and my energy definition to calculate function value.Is it correct? </div><div><br></div><div>I only found one tao example that solves time dependent problem, but it is using TS which I am not using.</div><div><br></div><div><br></div><div>Thanks,</div><div>Josh</div><div> </div></div>