Lines Matching refs:dm
34 MPI_Comm comm = PetscObjectComm((PetscObject)user->dm); in CreateStatsDM()
42 PetscCall(DMGetBoundingBox(user->dm, domain_min, domain_max)); in CreateStatsDM()
52 PetscCall(DMPlexGetIsoperiodicFaceSF(user->dm, &num_isoperiodicface, &isoperiodicface)); in CreateStatsDM()
63 PetscCall(DMCreateLabel(user->dm, "Periodic Face")); in CreateStatsDM()
64 PetscCall(DMGetLabel(user->dm, "Periodic Face", &label)); in CreateStatsDM()
70 PetscCall(DMGetLabel(user->dm, "Face Sets", &label)); in CreateStatsDM()
73 PetscCall(DMPlexLabelComplete(user->dm, label)); in CreateStatsDM()
74 … PetscCall(DMPlexFilter(user->dm, label, 1, PETSC_FALSE, PETSC_FALSE, NULL, &user->spanstats.dm)); in CreateStatsDM()
75 …PetscCall(DMSetCoordinateDisc(user->spanstats.dm, NULL, PETSC_TRUE)); // Ensure that a coordinate… in CreateStatsDM()
77 PetscCall(DMPlexDistribute(user->spanstats.dm, 0, NULL, &parent_distributed_dm)); in CreateStatsDM()
80 PetscCall(DMDestroy(&user->spanstats.dm)); in CreateStatsDM()
81 user->spanstats.dm = parent_distributed_dm; in CreateStatsDM()
88 PetscCall(DMPlexIsSimplex(user->spanstats.dm, &is_simplex)); in CreateStatsDM()
92 PetscCall(PetscObjectSetName((PetscObject)user->spanstats.dm, "Spanwise_Stats")); in CreateStatsDM()
93 PetscCall(DMSetOptionsPrefix(user->spanstats.dm, "turbulence_spanstats_")); in CreateStatsDM()
94 PetscCall(DMSetFromOptions(user->spanstats.dm)); in CreateStatsDM()
95 PetscCall(DMViewFromOptions(user->spanstats.dm, NULL, "-dm_view")); in CreateStatsDM()
99 user->spanstats.dm)); in CreateStatsDM()
102 PetscCall(DMGetLocalSection(user->spanstats.dm, §ion)); in CreateStatsDM()
150 PetscErrorCode GetQuadratureCoords(Ceed ceed, DM dm, CeedElemRestriction elem_restr_x, CeedBasis ba… in GetQuadratureCoords() argument
173 …PetscCall(CeedOperatorCreateLocalVecs(op_quad_coords, DMReturnVecType(dm), PETSC_COMM_SELF, NULL, … in GetQuadratureCoords()
186 DM dm = user->spanstats.dm; in SpanStatsSetupDataCreate() local
195 …PetscCall(DMPlexCeedElemRestrictionCreate(ceed, dm, domain_label, label_value, height, dm_field, &… in SpanStatsSetupDataCreate()
196 …PetscCall(DMPlexCeedElemRestrictionCoordinateCreate(ceed, dm, domain_label, label_value, height, &… in SpanStatsSetupDataCreate()
202 PetscCall(DMGetCoordinateDM(dm, &dm_coord)); in SpanStatsSetupDataCreate()
204 …PetscCall(CreateBasisFromPlex(ceed, dm, domain_label, label_value, height, dm_field, &(*stats_data… in SpanStatsSetupDataCreate()
214 PetscCall(DMGetCellCoordinateDM(dm, &cdm)); in SpanStatsSetupDataCreate()
216 PetscCall(DMGetCellCoordinatesLocal(dm, &X_loc)); in SpanStatsSetupDataCreate()
218 PetscCall(DMGetCoordinatesLocal(dm, &X_loc)); in SpanStatsSetupDataCreate()
315 …PetscCall(OperatorApplyContextCreate(NULL, user->spanstats.dm, ceed, op_proj_rhs, NULL, NULL, NULL… in SetupL2ProjectionStats()
316 …PetscCall(CeedOperatorCreateLocalVecs(op_proj_rhs, DMReturnVecType(user->spanstats.dm), PETSC_COMM… in SetupL2ProjectionStats()
317 …PetscCall(QDataGet(ceed, user->spanstats.dm, domain_label, label_value, stats_data->elem_restr_par… in SetupL2ProjectionStats()
331 PetscCall(MatCreateCeed(user->spanstats.dm, user->spanstats.dm, op_mass, NULL, &mat_mass)); in SetupL2ProjectionStats()
333 PetscCall(KSPCreate(PetscObjectComm((PetscObject)user->spanstats.dm), &ksp)); in SetupL2ProjectionStats()
423 …PetscCall(OperatorApplyContextCreate(user->dm, user->spanstats.dm, user->ceed, op_stats_collect, u… in CreateStatisticCollectionOperator()
426 …PetscCall(CeedOperatorCreateLocalVecs(op_stats_collect, DMReturnVecType(user->spanstats.dm), PETSC… in CreateStatisticCollectionOperator()
447 …PetscCall(QDataGet(ceed, user->spanstats.dm, domain_label, label_value, stats_data->elem_restr_par… in SetupMMSErrorChecking()
465 …PetscCall(OperatorApplyContextCreate(user->spanstats.dm, user->spanstats.dm, user->ceed, op_error,… in SetupMMSErrorChecking()
494 …PetscCall(CreateStatsSF(ceed, ceed_data, stats_data, user->dm, user->spanstats.dm, &user->spanstat… in TurbulenceStatisticsSetup()
533 PetscCall(DMGlobalToLocal(user->dm, Q, INSERT_VALUES, user->Q_loc)); in CollectStatistics()
575 PetscCall(DMGetOutputSequenceNumber(user_stats.dm, NULL, &solution_time)); in ProcessStatistics()
580 PetscCall(DMGetGlobalVector(user_stats.dm, &RHS)); in ProcessStatistics()
585 PetscCall(DMRestoreGlobalVector(user_stats.dm, &RHS)); in ProcessStatistics()
608 PetscCall(DMSetOutputSequenceNumber(user->spanstats.dm, steps, solution_time)); in TSMonitor_TurbulenceStatistics()
609 PetscCall(DMGetGlobalVector(user->spanstats.dm, &stats)); in TSMonitor_TurbulenceStatistics()
628 PetscCall(DMRestoreGlobalVector(user->spanstats.dm, &stats)); in TSMonitor_TurbulenceStatistics()
645 PetscCall(DMDestroy(&user->spanstats.dm)); in TurbulenceStatisticsDestroy()