#include "petscts.h" PetscErrorCode TSSetSolutionFunction(TS ts,PetscErrorCode (*f)(TS,PetscReal,Vec,void*),void *ctx)Logically Collective on TS
ts | - the TS context obtained from TSCreate() | |
f | - routine for evaluating the solution | |
ctx | - [optional] user-defined context for private data for the function evaluation routine (may be NULL) |
PetscErrorCode f(TS ts,PetscReal t,Vec u,void *ctx);
t | - current timestep | |
u | - output vector | |
ctx | - [optional] user-defined function context |
-ts_monitor_lg_error | - create a graphical monitor of error history, requires user to have provided TSSetSolutionFunction() | |
-ts_monitor_draw_error | - Monitor error graphically, requires user to have provided TSSetSolutionFunction() |
For low-dimensional problems solved in serial, such as small discrete systems, TSMonitorLGError() can be used to monitor the error history.