#include "petscts.h" PetscErrorCode TSMonitorSet(TS ts,PetscErrorCode (*monitor)(TS,PetscInt,PetscReal,Vec,void*),void *mctx,PetscErrorCode (*mdestroy)(void**))Logically Collective on TS
ts | - the TS context obtained from TSCreate() | |
monitor | - monitoring routine | |
mctx | - [optional] user-defined context for private data for the monitor routine (use NULL if no context is desired) | |
monitordestroy | - [optional] routine that frees monitor context (may be NULL) |
int monitor(TS ts,PetscInt steps,PetscReal time,Vec u,void *mctx)
ts | - the TS context | |
steps | - iteration number (after the final time step the monitor routine is called with a step of -1, this is at the final time which may have been interpolated to) | |
time | - current time | |
u | - current iterate | |
mctx | - [optional] monitoring context |
Fortran notes: Only a single monitor function can be set for each TS object
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