[petsc-dev] remove ftime from PetscErrorCode TSSolve(TS ts, Vec u, PetscReal *ftime)
Jed Brown
jedbrown at mcs.anl.gov
Mon Oct 29 21:27:41 CDT 2012
Sure, you could do that. Do you want to get rid of the solution vector too?
On Oct 29, 2012 6:55 PM, "Barry Smith" <bsmith at mcs.anl.gov> wrote:
>
> I don't understand, in TSSolve() I see
>
> if (ftime) *ftime = ts->prime;
> and if (ftime) *ftime = ts->max_time;
>
> why not just stash ftime in the TS object and provide a
> TSGetFinalTime(ts,PetscInt *ftime)?
>
> Barry
>
>
>
>
> On Oct 29, 2012, at 8:51 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:
>
> > 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.
> >
> > On Oct 29, 2012 6:46 PM, "Barry Smith" <bsmith at mcs.anl.gov> wrote:
> >
> > Can we remove the ftime argument from TSSolve()?
> >
> > Thanks
> >
> > Barry
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20121029/c95d42f9/attachment.html>
More information about the petsc-dev
mailing list