#include "petscts.h" int TSSetMonitor(TS ts,int (*monitor)(TS,int,PetscReal,Vec,void*),void *mctx,int (*mdestroy)(void*))Collective on TS
ts | - the TS context obtained from TSCreate() | |
func | - monitoring routine | |
mctx | - [optional] user-defined context for private data for the monitor routine (use PETSC_NULL if no context is desired) | |
monitordestroy | - [optional] routine that frees monitor context (may be PETSC_NULL) |
int func(TS ts,int steps,PetscReal time,Vec x,void *mctx)
ts | - the TS context | |
steps | - iteration number | |
time | - current time | |
x | - current iterate | |
mctx | - [optional] monitoring context |
Level:intermediate
Location:src/ts/interface/ts.c
Index of all TS routines
Table of Contents for all manual pages
Index of all manual pages