:orphan: # TSMonitorDrawCtxCreate Creates the monitor context for `TSMonitorDrawCtx` ## Synopsis ``` #include "petscts.h" PetscErrorCode TSMonitorDrawCtxCreate(MPI_Comm comm, const char host[], const char label[], int x, int y, int m, int n, PetscInt howoften, TSMonitorDrawCtx *ctx) ``` Collective ## Input Parameter - ***ts -*** time-step context ## Output Parameter - ***ctx -*** the monitor context ## Options Database Keys - ***-ts_monitor_draw_solution -*** draw the solution at each time-step - ***-ts_monitor_draw_solution_initial -*** show initial solution as well as current solution ## Note The context created by this function, `PetscMonitorDrawSolution()`, and `TSMonitorDrawCtxDestroy()` should be passed together to `TSMonitorSet()`. ## See Also [](ch_ts), `TS`, `TSMonitorDrawCtxDestroy()`, `TSMonitorSet()`, `TSMonitorDefault()`, `VecView()`, `TSMonitorDrawCtx`, `PetscMonitorDrawSolution()` ## Level intermediate ## Location src/ts/interface/tsmon.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ts/interface/tsmon.c) [Index of all TS routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)