[petsc-users] Obtaining TS rosw solver output at regular time steps

Jed Brown jed at jedbrown.org
Thu May 22 15:22:30 CDT 2014


Fiona Reid <fiona at epcc.ed.ac.uk> writes:

> Apologies everyone, I have another somewhat related question.
>
> If I actually want to use a variable time step with RosW is there any 
> way to output the results at regular 0.05 seconds intervals? I realise 
> this will interpolate between two points but it would be good to be able 
> to plot all my data for the same time values.
>
> Using "-ts_adapt_type none" doesn't quite give me a "good enough" solution.

I recommend writing a monitor (TSMonitorSet) that checks whether an
"interesting" time has been passed on the step that just completed, then
use TSInterpolate() to obtain a solution at that "interesting" time.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140522/ed308f6c/attachment.pgp>


More information about the petsc-users mailing list