TSSetMonitor

Sets an ADDITIONAL function that is to be used at every timestep to display the iteration's progress.

Synopsis

int TSSetMonitor(TS ts, int (*monitor)(TS,int,double,Vec,void*), void *mctx )
Collective on TS

Input Parameters

ts - the TS context obtained from TSCreate()
func - monitoring routine
mctx - [optional] user-defined context for private data for the monitor routine (may be PETSC_NULL)

Calling sequence of func

   int func(TS ts,int steps,double time,Vec x,void *mctx)

ts - the TS context
steps - iteration number
time - current timestep
x - current iterate
mctx - [optional] monitoring context

Notes

This routine adds an additional monitor to the list of monitors thatalready has been loaded.

Keywords

TS, timestep, set, monitor

See Also

TSDefaultMonitor(), TSClearMonitor()

Examples

src/ts/examples/tutorials/ex2f.F

Location: src/ts/interface/ts.c
Time Stepping
Table of Contents