[petsc-dev] monitor routine for final "iteration"
Matthew Knepley
knepley at gmail.com
Wed May 1 06:26:36 CDT 2013
On Tue, Apr 30, 2013 at 8:06 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:
>
> For TS I had wanted a way for the monitor routines to know that they
> were in the final iteration (time-step) so I put in a hack with a time step
> == -1. Lisandro proposed and implemented a far better solution of just
> making sure that ts->convergedreason was set for EXACTLY the last call to
> monitor and using that to indicate the final time-step.
>
> I suggest we do the same thing for KSP and SNES. This will require
> moving around slightly the location of Monitor() in the solvers but I took
> a quick look at the codes and it looks doable.
>
> Does this sound like a reasonable change to the code?
Yes.
Matt
> Barry
>
--
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/20130501/dd957496/attachment.html>
More information about the petsc-dev
mailing list