Lines Matching refs:ctx
149 PetscErrorCode SpanwiseStatisticsSetup_Turbulence(TS ts, PetscViewerAndFormat *ctx) { in SpanwiseStatisticsSetup_Turbulence() argument
158 PetscCall(PetscObjectTypeCompare((PetscObject)ctx->viewer, PETSCVIEWERASCII, &is_ascii)); in SpanwiseStatisticsSetup_Turbulence()
201 ctx->data = spanstats; in SpanwiseStatisticsSetup_Turbulence()
202 ctx->data_destroy = (PetscCtxDestroyFn *)SpanStatsCtxDestroy; in SpanwiseStatisticsSetup_Turbulence()
204 PetscCall(SpanwiseStatisticsSetupFinalize(ts, honee, spanstats, ctx, &stats_setup_data)); in SpanwiseStatisticsSetup_Turbulence()
209 …sticsTurbulence(TS ts, PetscInt steps, PetscReal solution_time, Vec Q, PetscViewerAndFormat *ctx) { in TSMonitor_SpanwiseStatisticsTurbulence() argument
213 SpanStatsCtx spanstats = ctx->data; in TSMonitor_SpanwiseStatisticsTurbulence()
214 …PetscInt collect_interval = spanstats->collect_interval, viewer_interval = ctx->view_inte… in TSMonitor_SpanwiseStatisticsTurbulence()
232 PetscCall(PetscViewerPushFormat(ctx->viewer, ctx->format)); in TSMonitor_SpanwiseStatisticsTurbulence()
233 PetscCall(VecView(stats, ctx->viewer)); in TSMonitor_SpanwiseStatisticsTurbulence()
234 PetscCall(PetscViewerPopFormat(ctx->viewer)); in TSMonitor_SpanwiseStatisticsTurbulence()
241 PetscCall(PetscViewerFileGetName(ctx->viewer, &filename)); in TSMonitor_SpanwiseStatisticsTurbulence()