[petsc-dev] TSSolve() shouldn't return a time

Matthew Knepley knepley at gmail.com
Sun Oct 23 16:24:03 CDT 2011


On Sun, Oct 23, 2011 at 9:20 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:

> On Sun, Oct 23, 2011 at 16:15, Matthew Knepley <knepley at gmail.com> wrote:
>
>> TSSetExactFinalTime() ?
>>>
>>
>> This I think is probably alright. I assume it means "give me the closest
>> time to this one that I can
>> get without interpolating".
>>
>
> TSSetExactFinalTime(ts,TRUE) means that the returned solution will be
> exactly at the requested final time. Usually this is done by stepping over
> the final time and interpolating, but the user doesn't need to think about
> that.
>
> TSSetExactFinalTime(ts,FALSE), currently the default (but maybe that should
> be changed), steps past the requested final time and does not interpolate
> back. This is useful if you want to do a given amount of work or just want
> to look at the time series without inspecting an exact future time.
>

I would definitely make the former the default. Doing a "given amount of
work" only holds if you turn off adaptivity as well, and if you
only care about inspecting, I do not see why you would care about a final
interpolation.

  Matt

-- 
What most experimenters take for granted before they begin their experiments
is infinitely more interesting than any results to which their experiments
lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20111023/e2a5907f/attachment.html>


More information about the petsc-dev mailing list