Lines Matching refs:spanstats
17 static PetscErrorCode CreateStatisticCollectionOperator(Honee honee, SpanStatsCtx spanstats, SpanSt… in CreateStatisticCollectionOperator() argument
19 CeedInt num_comp_stats = spanstats->num_comp_stats, q_data_size; in CreateStatisticCollectionOperator()
47 if (spanstats->do_mms_test) { in CreateStatisticCollectionOperator()
88 …d, CeedOperatorGetContextFieldLabel(op_stats_collect, "solution time", &spanstats->solution_time_l… in CreateStatisticCollectionOperator()
89 …d, CeedOperatorGetContextFieldLabel(op_stats_collect, "previous time", &spanstats->previous_time_l… in CreateStatisticCollectionOperator()
91 …PetscCall(OperatorApplyContextCreate(honee->dm, spanstats->dm, honee->ceed, op_stats_collect, hone… in CreateStatisticCollectionOperator()
92 &spanstats->op_stats_collect_ctx)); in CreateStatisticCollectionOperator()
94 …orCreateLocalVecs(op_stats_collect, DMReturnVecType(spanstats->dm), PETSC_COMM_SELF, NULL, &spanst… in CreateStatisticCollectionOperator()
95 PetscCall(VecZeroEntries(spanstats->Child_Stats_loc)); in CreateStatisticCollectionOperator()
110 static PetscErrorCode SetupMMSErrorChecking(Honee honee, SpanStatsCtx spanstats, SpanStatsSetupData… in SetupMMSErrorChecking() argument
112 CeedInt num_comp_stats = spanstats->num_comp_stats, num_comp_x, q_data_size; in SetupMMSErrorChecking()
120 …PetscCall(QDataGet(ceed, spanstats->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, &elem_restr_parent… in SetupMMSErrorChecking()
137 …all(OperatorApplyContextCreate(spanstats->dm, spanstats->dm, honee->ceed, op_error, x_ceed, y_ceed… in SetupMMSErrorChecking()
152 SpanStatsCtx spanstats; in SpanwiseStatisticsSetup_Turbulence() local
162 …ialize(honee, honee->app_ctx->degree, TURB_NUM_COMPONENTS, prefix, &stats_setup_data, &spanstats)); in SpanwiseStatisticsSetup_Turbulence()
167 PetscCall(DMGetLocalSection(spanstats->dm, §ion)); in SpanwiseStatisticsSetup_Turbulence()
194 …PetscCall(CreateStatisticCollectionOperator(honee, spanstats, stats_setup_data, honee->problem_dat… in SpanwiseStatisticsSetup_Turbulence()
196 …PetscCall(PetscOptionsGetBool(NULL, NULL, "-ts_monitor_spanstats_turbulence_mms", &spanstats->do_m… in SpanwiseStatisticsSetup_Turbulence()
197 if (spanstats->do_mms_test) { in SpanwiseStatisticsSetup_Turbulence()
198 PetscCall(SetupMMSErrorChecking(honee, spanstats, stats_setup_data)); in SpanwiseStatisticsSetup_Turbulence()
201 ctx->data = spanstats; in SpanwiseStatisticsSetup_Turbulence()
204 PetscCall(SpanwiseStatisticsSetupFinalize(ts, honee, spanstats, ctx, &stats_setup_data)); in SpanwiseStatisticsSetup_Turbulence()
213 SpanStatsCtx spanstats = ctx->data; in TSMonitor_SpanwiseStatisticsTurbulence() local
214 …PetscInt collect_interval = spanstats->collect_interval, viewer_interval = ctx->view_inte… in TSMonitor_SpanwiseStatisticsTurbulence()
225 PetscCall(SpanwiseStatisticsCollect(honee, spanstats, solution_time, Q)); in TSMonitor_SpanwiseStatisticsTurbulence()
228 PetscCall(DMSetOutputSequenceNumber(spanstats->dm, steps, solution_time)); in TSMonitor_SpanwiseStatisticsTurbulence()
229 PetscCall(DMGetGlobalVector(spanstats->dm, &stats)); in TSMonitor_SpanwiseStatisticsTurbulence()
230 PetscCall(SpanwiseStatisticsProcess(honee, spanstats, stats)); in TSMonitor_SpanwiseStatisticsTurbulence()
248 … filename, spanstats->initial_solution_time / second, solution_time / second, in TSMonitor_SpanwiseStatisticsTurbulence()
249 spanstats->initial_solution_step, steps)); in TSMonitor_SpanwiseStatisticsTurbulence()
253 …spanstats->prefix, spanstats->initial_solution_time / second, solution_time / second, spanstats->i… in TSMonitor_SpanwiseStatisticsTurbulence()
261 if (spanstats->do_mms_test && reason != TS_CONVERGED_ITERATING) { in TSMonitor_SpanwiseStatisticsTurbulence()
264 PetscCall(ApplyCeedOperatorGlobalToGlobal(stats, error, spanstats->mms_error_ctx)); in TSMonitor_SpanwiseStatisticsTurbulence()
270 PetscCall(DMRestoreGlobalVector(spanstats->dm, &stats)); in TSMonitor_SpanwiseStatisticsTurbulence()