Lines Matching refs:monitor_ctx

15 static PetscErrorCode MonitorCflCtxDestroy(MonitorCflCtx *monitor_ctx) {  in MonitorCflCtxDestroy()  argument
16 MonitorCflCtx monitor_ctx_ = *monitor_ctx; in MonitorCflCtxDestroy()
22 *monitor_ctx = NULL; in MonitorCflCtxDestroy()
36 MonitorCflCtx monitor_ctx; in SetupMontiorCfl() local
47 PetscCall(PetscNew(&monitor_ctx)); in SetupMontiorCfl()
116 …textCreate(honee->dm, NULL, ceed, op_monitor, NULL, NULL, NULL, NULL, &monitor_ctx->op_monitor_ctx… in SetupMontiorCfl()
118 …ateLocalVecs(op_monitor, DMReturnVecType(honee->dm), PETSC_COMM_SELF, NULL, &monitor_ctx->values)); in SetupMontiorCfl()
119 PetscCall(VecSetBlockSize(monitor_ctx->values, num_comp_cfl)); in SetupMontiorCfl()
120 monitor_ctx->num_comps = num_comp_cfl; in SetupMontiorCfl()
122 monitor_ctx->tab_level = tab_level + 1; in SetupMontiorCfl()
124 ctx->data = monitor_ctx; in SetupMontiorCfl()
139 MonitorCflCtx monitor_ctx = (MonitorCflCtx)ctx->data; in TSMonitor_Cfl() local
154 …PetscCall(ApplyCeedOperatorLocalToLocal(honee->Q_loc, monitor_ctx->values, monitor_ctx->op_monitor… in TSMonitor_Cfl()
156 PetscCall(VecMin(monitor_ctx->values, NULL, &part_minmax[0])); in TSMonitor_Cfl()
157 PetscCall(VecMax(monitor_ctx->values, NULL, &part_minmax[1])); in TSMonitor_Cfl()
165 if (!monitor_ctx->is_header_written) { in TSMonitor_Cfl()
192 monitor_ctx->is_header_written = PETSC_TRUE; in TSMonitor_Cfl()
199 PetscCall(PetscViewerASCIIAddTab(ctx->viewer, monitor_ctx->tab_level)); in TSMonitor_Cfl()
201 PetscCall(PetscViewerASCIISubtractTab(ctx->viewer, monitor_ctx->tab_level)); in TSMonitor_Cfl()