[petsc-users] Modifying the computed TS step, TSSetPostStep vs TSSetPostEvaluate

Mark Lohry mlohry at gmail.com
Sun Jul 22 08:43:22 CDT 2018

For the time iteration

y(t+dt) = y(t) + dt * R(y,t,...)

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.

Where is the appropriate place to do this? SNES provides
SNESLineSearchSetPostCheck where you can modify the newton step; is there a
TS equivalent?

Or do I need to internally maintain a copy of y(t) to re-compute R and then
call TSSetSolution with a modified vector?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20180722/7237a6f4/attachment.html>

More information about the petsc-users mailing list