[petsc-users] When is the TSMonitor called?

Jed Brown jed at jedbrown.org
Wed Oct 8 12:16:29 CDT 2014


Miguel Angel Salazar de Troya <salazardetroya at gmail.com> writes:

> Hi all
>
> I want to save a certain quantity at the very beginning of each time step,
> before any TSFunction of any kind is called. Can I do this within the
> TSMonitor? It would also be ok to save that quantity at the very end of the
> time step.

This is the main time loop in TSSolve()

    while (!ts->reason) {
      ierr = TSMonitor(ts,ts->steps,ts->ptime,ts->vec_sol);CHKERRQ(ierr);
      ierr = TSStep(ts);CHKERRQ(ierr);
      ierr = TSPostStep(ts);CHKERRQ(ierr);
    }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20141008/e3bed39f/attachment.pgp>


More information about the petsc-users mailing list