<p>Sure, you could do that. Do you want to get rid of the solution vector too?</p>
<div class="gmail_quote">On Oct 29, 2012 6:55 PM, "Barry Smith" <<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I don't understand, in TSSolve() I see<br>
<br>
if (ftime) *ftime = ts->prime;<br>
and if (ftime) *ftime = ts->max_time;<br>
<br>
why not just stash ftime in the TS object and provide a TSGetFinalTime(ts,PetscInt *ftime)?<br>
<br>
Barry<br>
<br>
<br>
<br>
<br>
On Oct 29, 2012, at 8:51 PM, Jed Brown <<a href="mailto:jedbrown@mcs.anl.gov">jedbrown@mcs.anl.gov</a>> wrote:<br>
<br>
> In general, there is the internal state which may be later than the final time, plus the interpolated time. If you get rid of that argument, the user probably has to use TSInterpolate to get the state to coincide with the final time.<br>
><br>
> On Oct 29, 2012 6:46 PM, "Barry Smith" <<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>> wrote:<br>
><br>
> Can we remove the ftime argument from TSSolve()?<br>
><br>
> Thanks<br>
><br>
> Barry<br>
><br>
<br>
</blockquote></div>