<div dir="ltr">For the time iteration<div><br></div><div>y(t+dt) = y(t) + dt * R(y,t,...)</div><div><br></div><div>I need to apply a spectral filter to R prior to moving to the next step, e.g. so not use exactly the step computed by TS.</div><div><br></div><div>Where is the appropriate place to do this? SNES provides SNESLineSearchSetPostCheck where you can modify the newton step; is there a TS equivalent?</div><div><br></div><div>Or do I need to internally maintain a copy of y(t) to re-compute R and then call TSSetSolution with a modified vector?</div></div>