Lines Matching refs:ceed
135 static PetscErrorCode CreateElemRestrColloc_CompMajor(Ceed ceed, CeedInt num_comp, CeedBasis basis,… in CreateElemRestrColloc_CompMajor() argument
140 PetscCallCeed(ceed, CeedBasisGetNumQuadraturePoints(basis, &num_elem_qpts)); in CreateElemRestrColloc_CompMajor()
141 PetscCallCeed(ceed, CeedElemRestrictionGetNumElements(elem_restr_base, &loc_num_elem)); in CreateElemRestrColloc_CompMajor()
144 …PetscCallCeed(ceed, CeedElemRestrictionCreateStrided(ceed, loc_num_elem, num_elem_qpts, num_comp, … in CreateElemRestrColloc_CompMajor()
150 PetscErrorCode GetQuadratureCoords(Ceed ceed, DM dm, CeedElemRestriction elem_restr_x, CeedBasis ba… in GetQuadratureCoords() argument
160 PetscCallCeed(ceed, CeedElemRestrictionGetNumComponents(elem_restr_x, &num_comp_x)); in GetQuadratureCoords()
161 …PetscCall(CreateElemRestrColloc_CompMajor(ceed, num_comp_x, basis_x, elem_restr_x, &elem_restr_qx)… in GetQuadratureCoords()
162 PetscCallCeed(ceed, CeedElemRestrictionGetLVectorSize(elem_restr_qx, &l_vec_size)); in GetQuadratureCoords()
166 …PetscCallCeed(ceed, CeedQFunctionCreateIdentity(ceed, num_comp_x, CEED_EVAL_INTERP, CEED_EVAL_NONE… in GetQuadratureCoords()
169 PetscCallCeed(ceed, CeedOperatorCreate(ceed, qf_quad_coords, NULL, NULL, &op_quad_coords)); in GetQuadratureCoords()
170 …PetscCallCeed(ceed, CeedOperatorSetField(op_quad_coords, "input", elem_restr_x, basis_x, x_coords)… in GetQuadratureCoords()
171 …PetscCallCeed(ceed, CeedOperatorSetField(op_quad_coords, "output", elem_restr_qx, CEED_BASIS_NONE,… in GetQuadratureCoords()
174 …PetscCall(OperatorApplyContextCreate(NULL, NULL, ceed, op_quad_coords, CEED_VECTOR_NONE, NULL, NUL… in GetQuadratureCoords()
179 PetscCallCeed(ceed, CeedElemRestrictionDestroy(&elem_restr_qx)); in GetQuadratureCoords()
180 PetscCallCeed(ceed, CeedQFunctionDestroy(&qf_quad_coords)); in GetQuadratureCoords()
181 PetscCallCeed(ceed, CeedOperatorDestroy(&op_quad_coords)); in GetQuadratureCoords()
185 PetscErrorCode SpanStatsSetupDataCreate(Ceed ceed, User user, CeedData ceed_data, ProblemData probl… in SpanStatsSetupDataCreate() argument
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()
197 …PetscCallCeed(ceed, CeedElemRestrictionGetNumComponents((*stats_data)->elem_restr_parent_x, &num_c… in SpanStatsSetupDataCreate()
198 …PetscCallCeed(ceed, CeedElemRestrictionCreateVector((*stats_data)->elem_restr_parent_x, &(*stats_d… in SpanStatsSetupDataCreate()
203 …PetscCall(CreateBasisFromPlex(ceed, dm_coord, domain_label, label_value, height, dm_field, &(*stat… in SpanStatsSetupDataCreate()
204 …PetscCall(CreateBasisFromPlex(ceed, dm, domain_label, label_value, height, dm_field, &(*stats_data… in SpanStatsSetupDataCreate()
207 …PetscCall(CreateElemRestrColloc_CompMajor(ceed, num_comp_stats, (*stats_data)->basis_stats, (*stat… in SpanStatsSetupDataCreate()
209 …PetscCall(CreateElemRestrColloc_CompMajor(ceed, num_comp_stats, ceed_data->basis_q, ceed_data->ele… in SpanStatsSetupDataCreate()
227 Ceed ceed; in SpanStatsSetupDataDestroy() local
230 PetscCall(CeedElemRestrictionGetCeed(data->elem_restr_parent_x, &ceed)); in SpanStatsSetupDataDestroy()
231 PetscCallCeed(ceed, CeedElemRestrictionDestroy(&data->elem_restr_parent_x)); in SpanStatsSetupDataDestroy()
232 PetscCallCeed(ceed, CeedElemRestrictionDestroy(&data->elem_restr_parent_stats)); in SpanStatsSetupDataDestroy()
233 PetscCallCeed(ceed, CeedElemRestrictionDestroy(&data->elem_restr_parent_colloc)); in SpanStatsSetupDataDestroy()
234 PetscCallCeed(ceed, CeedElemRestrictionDestroy(&data->elem_restr_child_colloc)); in SpanStatsSetupDataDestroy()
236 PetscCallCeed(ceed, CeedBasisDestroy(&data->basis_x)); in SpanStatsSetupDataDestroy()
237 PetscCallCeed(ceed, CeedBasisDestroy(&data->basis_stats)); in SpanStatsSetupDataDestroy()
239 PetscCallCeed(ceed, CeedVectorDestroy(&data->x_coord)); in SpanStatsSetupDataDestroy()
241 …PetscCheck(CeedDestroy(&ceed) == CEED_ERROR_SUCCESS, PETSC_COMM_WORLD, PETSC_ERR_LIB, "Destroying … in SpanStatsSetupDataDestroy()
248 PetscErrorCode CreateStatsSF(Ceed ceed, CeedData ceed_data, SpanStatsSetupData stats_data, DM paren… in CreateStatsSF() argument
257 PetscCallCeed(ceed, CeedBasisGetNumComponents(ceed_data->basis_x, &num_comp_x)); in CreateStatsSF()
261 …PetscCall(GetQuadratureCoords(ceed, childdm, ceed_data->elem_restr_x, ceed_data->basis_x, ceed_dat… in CreateStatsSF()
262 …PetscCall(GetQuadratureCoords(ceed, parentdm, stats_data->elem_restr_parent_x, stats_data->basis_x… in CreateStatsSF()
296 PetscErrorCode SetupL2ProjectionStats(Ceed ceed, User user, CeedData ceed_data, SpanStatsSetupData … in SetupL2ProjectionStats() argument
309 …PetscCallCeed(ceed, CeedQFunctionCreateIdentity(ceed, num_comp_stats, CEED_EVAL_NONE, CEED_EVAL_IN… in SetupL2ProjectionStats()
311 PetscCallCeed(ceed, CeedOperatorCreate(ceed, qf_stats_proj, NULL, NULL, &op_proj_rhs)); in SetupL2ProjectionStats()
312 …PetscCallCeed(ceed, CeedOperatorSetField(op_proj_rhs, "input", stats_data->elem_restr_parent_collo… in SetupL2ProjectionStats()
313 …PetscCallCeed(ceed, CeedOperatorSetField(op_proj_rhs, "output", stats_data->elem_restr_parent_stat… in SetupL2ProjectionStats()
315 …PetscCall(OperatorApplyContextCreate(NULL, user->spanstats.dm, ceed, op_proj_rhs, NULL, NULL, NULL… in SetupL2ProjectionStats()
317 …PetscCall(QDataGet(ceed, user->spanstats.dm, domain_label, label_value, stats_data->elem_restr_par… in SetupL2ProjectionStats()
321 PetscCall(CreateMassQFunction(ceed, num_comp_stats, q_data_size, &qf_mass)); in SetupL2ProjectionStats()
322 PetscCallCeed(ceed, CeedOperatorCreate(ceed, qf_mass, NULL, NULL, &op_mass)); in SetupL2ProjectionStats()
323 …PetscCallCeed(ceed, CeedOperatorSetField(op_mass, "u", stats_data->elem_restr_parent_stats, stats_… in SetupL2ProjectionStats()
324 …PetscCallCeed(ceed, CeedOperatorSetField(op_mass, "qdata", elem_restr_qd, CEED_BASIS_NONE, q_data)… in SetupL2ProjectionStats()
325 …PetscCallCeed(ceed, CeedOperatorSetField(op_mass, "v", stats_data->elem_restr_parent_stats, stats_… in SetupL2ProjectionStats()
350 PetscCallCeed(ceed, CeedElemRestrictionDestroy(&elem_restr_qd)); in SetupL2ProjectionStats()
351 PetscCallCeed(ceed, CeedVectorDestroy(&q_data)); in SetupL2ProjectionStats()
352 PetscCallCeed(ceed, CeedQFunctionDestroy(&qf_mass)); in SetupL2ProjectionStats()
353 PetscCallCeed(ceed, CeedQFunctionDestroy(&qf_stats_proj)); in SetupL2ProjectionStats()
354 PetscCallCeed(ceed, CeedOperatorDestroy(&op_mass)); in SetupL2ProjectionStats()
355 PetscCallCeed(ceed, CeedOperatorDestroy(&op_proj_rhs)); in SetupL2ProjectionStats()
360 PetscErrorCode CreateStatisticCollectionOperator(Ceed ceed, User user, CeedData ceed_data, SpanStat… in CreateStatisticCollectionOperator() argument
369 PetscCallCeed(ceed, CeedBasisGetNumComponents(ceed_data->basis_q, &num_comp_q)); in CreateStatisticCollectionOperator()
374 …PetscCallCeed(ceed, CeedQFunctionCreateInterior(ceed, 1, ChildStatsCollection_Prim, ChildStatsColl… in CreateStatisticCollectionOperator()
377 …PetscCallCeed(ceed, CeedQFunctionCreateInterior(ceed, 1, ChildStatsCollection_Conserv, ChildStatsC… in CreateStatisticCollectionOperator()
380 …PetscCallCeed(ceed, CeedQFunctionCreateInterior(ceed, 1, ChildStatsCollection_Entropy, ChildStatsC… in CreateStatisticCollectionOperator()
385 PetscCallCeed(ceed, CeedQFunctionDestroy(&qf_stats_collect)); in CreateStatisticCollectionOperator()
386 …PetscCallCeed(ceed, CeedQFunctionCreateInterior(ceed, 1, ChildStatsCollectionMMSTest, ChildStatsCo… in CreateStatisticCollectionOperator()
391 …PetscCallCeed(ceed, CeedQFunctionContextGetData(problem->apply_vol_rhs.qfunction_context, CEED_MEM… in CreateStatisticCollectionOperator()
394 PetscCallCeed(ceed, CeedQFunctionContextCreate(user->ceed, &collect_context)); in CreateStatisticCollectionOperator()
395 …PetscCallCeed(ceed, CeedQFunctionContextSetData(collect_context, CEED_MEM_HOST, CEED_USE_POINTER, … in CreateStatisticCollectionOperator()
396 …PetscCallCeed(ceed, CeedQFunctionContextSetDataDestroy(collect_context, CEED_MEM_HOST, FreeContext… in CreateStatisticCollectionOperator()
398 PetscCallCeed(ceed, CeedQFunctionContextRegisterDouble(collect_context, "solution time", in CreateStatisticCollectionOperator()
400 PetscCallCeed(ceed, in CreateStatisticCollectionOperator()
404 …PetscCallCeed(ceed, CeedQFunctionContextRestoreData(problem->apply_vol_rhs.qfunction_context, &new… in CreateStatisticCollectionOperator()
407 PetscCallCeed(ceed, CeedQFunctionSetContext(qf_stats_collect, collect_context)); in CreateStatisticCollectionOperator()
408 PetscCallCeed(ceed, CeedQFunctionContextDestroy(&collect_context)); in CreateStatisticCollectionOperator()
409 PetscCallCeed(ceed, CeedQFunctionAddInput(qf_stats_collect, "q", num_comp_q, CEED_EVAL_INTERP)); in CreateStatisticCollectionOperator()
410 …PetscCallCeed(ceed, CeedQFunctionAddInput(qf_stats_collect, "q_data", problem->q_data_size_vol, CE… in CreateStatisticCollectionOperator()
411 PetscCallCeed(ceed, CeedQFunctionAddInput(qf_stats_collect, "x", num_comp_x, CEED_EVAL_INTERP)); in CreateStatisticCollectionOperator()
412 …PetscCallCeed(ceed, CeedQFunctionAddOutput(qf_stats_collect, "v", num_comp_stats, CEED_EVAL_NONE)); in CreateStatisticCollectionOperator()
414 PetscCallCeed(ceed, CeedOperatorCreate(ceed, qf_stats_collect, NULL, NULL, &op_stats_collect)); in CreateStatisticCollectionOperator()
415 …PetscCallCeed(ceed, CeedOperatorSetField(op_stats_collect, "q", ceed_data->elem_restr_q, ceed_data… in CreateStatisticCollectionOperator()
416 …PetscCallCeed(ceed, CeedOperatorSetField(op_stats_collect, "q_data", ceed_data->elem_restr_qd_i, C… in CreateStatisticCollectionOperator()
417 …PetscCallCeed(ceed, CeedOperatorSetField(op_stats_collect, "x", ceed_data->elem_restr_x, ceed_data… in CreateStatisticCollectionOperator()
418 …PetscCallCeed(ceed, CeedOperatorSetField(op_stats_collect, "v", stats_data->elem_restr_child_collo… in CreateStatisticCollectionOperator()
420 …PetscCallCeed(ceed, CeedOperatorGetContextFieldLabel(op_stats_collect, "solution time", &user->spa… in CreateStatisticCollectionOperator()
421 …PetscCallCeed(ceed, CeedOperatorGetContextFieldLabel(op_stats_collect, "previous time", &user->spa… in CreateStatisticCollectionOperator()
423 …PetscCall(OperatorApplyContextCreate(user->dm, user->spanstats.dm, user->ceed, op_stats_collect, u… in CreateStatisticCollectionOperator()
430 PetscCallCeed(ceed, CeedQFunctionDestroy(&qf_stats_collect)); in CreateStatisticCollectionOperator()
431 PetscCallCeed(ceed, CeedOperatorDestroy(&op_stats_collect)); in CreateStatisticCollectionOperator()
436 PetscErrorCode SetupMMSErrorChecking(Ceed ceed, User user, CeedData ceed_data, SpanStatsSetupData s… in SetupMMSErrorChecking() argument
447 …PetscCall(QDataGet(ceed, user->spanstats.dm, domain_label, label_value, stats_data->elem_restr_par… in SetupMMSErrorChecking()
449 PetscCallCeed(ceed, CeedBasisGetNumComponents(stats_data->basis_x, &num_comp_x)); in SetupMMSErrorChecking()
451 …PetscCallCeed(ceed, CeedQFunctionCreateInterior(ceed, 1, ChildStatsCollectionMMSTest_Error, ChildS… in SetupMMSErrorChecking()
452 PetscCallCeed(ceed, CeedQFunctionAddInput(qf_error, "q", num_comp_stats, CEED_EVAL_INTERP)); in SetupMMSErrorChecking()
453 PetscCallCeed(ceed, CeedQFunctionAddInput(qf_error, "qdata", q_data_size, CEED_EVAL_NONE)); in SetupMMSErrorChecking()
454 PetscCallCeed(ceed, CeedQFunctionAddInput(qf_error, "x", num_comp_x, CEED_EVAL_INTERP)); in SetupMMSErrorChecking()
455 PetscCallCeed(ceed, CeedQFunctionAddOutput(qf_error, "v", num_comp_stats, CEED_EVAL_INTERP)); in SetupMMSErrorChecking()
457 PetscCallCeed(ceed, CeedOperatorCreate(ceed, qf_error, NULL, NULL, &op_error)); in SetupMMSErrorChecking()
458 …PetscCallCeed(ceed, CeedOperatorSetField(op_error, "q", stats_data->elem_restr_parent_stats, stats… in SetupMMSErrorChecking()
459 …PetscCallCeed(ceed, CeedOperatorSetField(op_error, "qdata", elem_restr_parent_qd, CEED_BASIS_NONE,… in SetupMMSErrorChecking()
460 …PetscCallCeed(ceed, CeedOperatorSetField(op_error, "x", stats_data->elem_restr_parent_x, stats_dat… in SetupMMSErrorChecking()
461 …PetscCallCeed(ceed, CeedOperatorSetField(op_error, "v", stats_data->elem_restr_parent_stats, stats… in SetupMMSErrorChecking()
463 …PetscCallCeed(ceed, CeedElemRestrictionCreateVector(stats_data->elem_restr_parent_stats, &x_ceed, … in SetupMMSErrorChecking()
464 …PetscCallCeed(ceed, CeedElemRestrictionCreateVector(stats_data->elem_restr_parent_stats, &y_ceed, … in SetupMMSErrorChecking()
465 …PetscCall(OperatorApplyContextCreate(user->spanstats.dm, user->spanstats.dm, user->ceed, op_error,… in SetupMMSErrorChecking()
468 PetscCallCeed(ceed, CeedVectorDestroy(&q_data)); in SetupMMSErrorChecking()
469 PetscCallCeed(ceed, CeedVectorDestroy(&x_ceed)); in SetupMMSErrorChecking()
470 PetscCallCeed(ceed, CeedVectorDestroy(&y_ceed)); in SetupMMSErrorChecking()
471 PetscCallCeed(ceed, CeedElemRestrictionDestroy(&elem_restr_parent_qd)); in SetupMMSErrorChecking()
472 PetscCallCeed(ceed, CeedQFunctionDestroy(&qf_error)); in SetupMMSErrorChecking()
473 PetscCallCeed(ceed, CeedOperatorDestroy(&op_error)); in SetupMMSErrorChecking()
478 PetscErrorCode TurbulenceStatisticsSetup(Ceed ceed, User user, CeedData ceed_data, ProblemData prob… in TurbulenceStatisticsSetup() argument
491 PetscCall(SpanStatsSetupDataCreate(ceed, user, ceed_data, problem, &stats_data)); in TurbulenceStatisticsSetup()
494 …PetscCall(CreateStatsSF(ceed, ceed_data, stats_data, user->dm, user->spanstats.dm, &user->spanstat… in TurbulenceStatisticsSetup()
497 PetscCall(CreateStatisticCollectionOperator(ceed, user, ceed_data, stats_data, problem)); in TurbulenceStatisticsSetup()
500 PetscCall(SetupL2ProjectionStats(ceed, user, ceed_data, stats_data)); in TurbulenceStatisticsSetup()
504 PetscCall(SetupMMSErrorChecking(ceed, user, ceed_data, stats_data)); in TurbulenceStatisticsSetup()
532 …PetscCallCeed(user->ceed, CeedOperatorSetContextDouble(user_stats.op_stats_collect_ctx->op, user_s… in CollectStatistics()
536 …PetscCallCeed(user->ceed, CeedOperatorSetContextDouble(user_stats.op_stats_collect_ctx->op, user_s… in CollectStatistics()