Lines Matching refs:ceed
121 static PetscErrorCode CreateElemRestrColloc_CompMajor(Ceed ceed, CeedInt num_comp, CeedBasis basis,… in CreateElemRestrColloc_CompMajor() argument
126 PetscCallCeed(ceed, CeedBasisGetNumQuadraturePoints(basis, &num_elem_qpts)); in CreateElemRestrColloc_CompMajor()
127 PetscCallCeed(ceed, CeedElemRestrictionGetNumElements(elem_restr_base, &loc_num_elem)); in CreateElemRestrColloc_CompMajor()
130 …PetscCallCeed(ceed, CeedElemRestrictionCreateStrided(ceed, loc_num_elem, num_elem_qpts, num_comp, … in CreateElemRestrColloc_CompMajor()
136 static PetscErrorCode GetQuadratureCoords(Ceed ceed, DM dm, DMLabel domain_label, PetscInt label_va… in GetQuadratureCoords() argument
148 …PetscCall(DMPlexCeedCoordinateCreateField(ceed, dm, domain_label, label_value, height, &elem_restr… in GetQuadratureCoords()
149 PetscCallCeed(ceed, CeedElemRestrictionGetNumComponents(elem_restr_x, &num_comp_x)); in GetQuadratureCoords()
150 …PetscCall(CreateElemRestrColloc_CompMajor(ceed, num_comp_x, basis_x, elem_restr_x, &elem_restr_qx)… in GetQuadratureCoords()
151 PetscCallCeed(ceed, CeedElemRestrictionGetLVectorSize(elem_restr_qx, &l_vec_size)); in GetQuadratureCoords()
155 …PetscCallCeed(ceed, CeedQFunctionCreateIdentity(ceed, num_comp_x, CEED_EVAL_INTERP, CEED_EVAL_NONE… in GetQuadratureCoords()
158 PetscCallCeed(ceed, CeedOperatorCreate(ceed, qf_quad_coords, NULL, NULL, &op_quad_coords)); in GetQuadratureCoords()
159 …PetscCallCeed(ceed, CeedOperatorSetField(op_quad_coords, "input", elem_restr_x, basis_x, x_coords)… in GetQuadratureCoords()
160 …PetscCallCeed(ceed, CeedOperatorSetField(op_quad_coords, "output", elem_restr_qx, CEED_BASIS_NONE,… in GetQuadratureCoords()
163 …PetscCall(OperatorApplyContextCreate(NULL, NULL, ceed, op_quad_coords, CEED_VECTOR_NONE, NULL, NUL… in GetQuadratureCoords()
168 PetscCallCeed(ceed, CeedElemRestrictionDestroy(&elem_restr_qx)); in GetQuadratureCoords()
169 PetscCallCeed(ceed, CeedElemRestrictionDestroy(&elem_restr_x)); in GetQuadratureCoords()
170 PetscCallCeed(ceed, CeedBasisDestroy(&basis_x)); in GetQuadratureCoords()
171 PetscCallCeed(ceed, CeedVectorDestroy(&x_coords)); in GetQuadratureCoords()
172 PetscCallCeed(ceed, CeedQFunctionDestroy(&qf_quad_coords)); in GetQuadratureCoords()
173 PetscCallCeed(ceed, CeedOperatorDestroy(&op_quad_coords)); in GetQuadratureCoords()
178 Ceed ceed = honee->ceed; in SpanwiseStatisticsSetupDataCreate() local
189 …PetscCall(DMPlexCeedElemRestrictionCreate(ceed, dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, height… in SpanwiseStatisticsSetupDataCreate()
191 …PetscCall(DMPlexCeedElemRestrictionCoordinateCreate(ceed, dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VAL… in SpanwiseStatisticsSetupDataCreate()
193 …PetscCallCeed(ceed, CeedElemRestrictionGetNumComponents((*stats_setup_data)->elem_restr_parent_x, … in SpanwiseStatisticsSetupDataCreate()
194 …PetscCallCeed(ceed, CeedElemRestrictionCreateVector((*stats_setup_data)->elem_restr_parent_x, &(*s… in SpanwiseStatisticsSetupDataCreate()
195 …PetscCall(DMPlexCeedBasisCoordinateCreate(ceed, dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, height… in SpanwiseStatisticsSetupDataCreate()
196 …PetscCall(DMPlexCeedBasisCreate(ceed, dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, height, dm_field… in SpanwiseStatisticsSetupDataCreate()
198 …PetscCall(CreateElemRestrColloc_CompMajor(ceed, num_comp_stats, (*stats_setup_data)->basis_stats, … in SpanwiseStatisticsSetupDataCreate()
200 …PetscCall(DMPlexCeedElemRestrictionCreate(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE,… in SpanwiseStatisticsSetupDataCreate()
201 …PetscCall(DMPlexCeedBasisCreate(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, 0, 0, &ba… in SpanwiseStatisticsSetupDataCreate()
202 …PetscCall(CreateElemRestrColloc_CompMajor(ceed, num_comp_stats, basis_q, elem_restr_q, &(*stats_se… in SpanwiseStatisticsSetupDataCreate()
203 PetscCallCeed(ceed, CeedElemRestrictionDestroy(&elem_restr_q)); in SpanwiseStatisticsSetupDataCreate()
204 PetscCallCeed(ceed, CeedBasisDestroy(&basis_q)); in SpanwiseStatisticsSetupDataCreate()
221 Ceed ceed; in SpanwiseStatisticsSetupDataDestroy() local
224 PetscCall(CeedElemRestrictionGetCeed(data->elem_restr_parent_x, &ceed)); in SpanwiseStatisticsSetupDataDestroy()
225 PetscCallCeed(ceed, CeedElemRestrictionDestroy(&data->elem_restr_parent_x)); in SpanwiseStatisticsSetupDataDestroy()
226 PetscCallCeed(ceed, CeedElemRestrictionDestroy(&data->elem_restr_parent_stats)); in SpanwiseStatisticsSetupDataDestroy()
227 PetscCallCeed(ceed, CeedElemRestrictionDestroy(&data->elem_restr_parent_colloc)); in SpanwiseStatisticsSetupDataDestroy()
228 PetscCallCeed(ceed, CeedElemRestrictionDestroy(&data->elem_restr_child_colloc)); in SpanwiseStatisticsSetupDataDestroy()
229 PetscCallCeed(ceed, CeedBasisDestroy(&data->basis_x)); in SpanwiseStatisticsSetupDataDestroy()
230 PetscCallCeed(ceed, CeedBasisDestroy(&data->basis_stats)); in SpanwiseStatisticsSetupDataDestroy()
231 PetscCallCeed(ceed, CeedVectorDestroy(&data->x_coord)); in SpanwiseStatisticsSetupDataDestroy()
233 …PetscCheck(CeedDestroy(&ceed) == CEED_ERROR_SUCCESS, PETSC_COMM_SELF, PETSC_ERR_LIB, "Destroying C… in SpanwiseStatisticsSetupDataDestroy()
240 Ceed ceed = honee->ceed; in SpanwiseStatisticsCreateSF() local
252 …PetscCall(GetQuadratureCoords(ceed, childdm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, 0, &Child_qx_… in SpanwiseStatisticsCreateSF()
253 …PetscCall(GetQuadratureCoords(ceed, parentdm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, 0, &Parent_q… in SpanwiseStatisticsCreateSF()
292 Ceed ceed = honee->ceed; in SpanwiseStatisticsSetupL2Projection() local
303 …PetscCallCeed(ceed, CeedQFunctionCreateIdentity(ceed, num_comp_stats, CEED_EVAL_NONE, CEED_EVAL_IN… in SpanwiseStatisticsSetupL2Projection()
305 PetscCallCeed(ceed, CeedOperatorCreate(ceed, qf_stats_proj, NULL, NULL, &op_proj_rhs)); in SpanwiseStatisticsSetupL2Projection()
306 …PetscCallCeed(ceed, CeedOperatorSetField(op_proj_rhs, "input", stats_setup_data->elem_restr_parent… in SpanwiseStatisticsSetupL2Projection()
307 …PetscCallCeed(ceed, CeedOperatorSetField(op_proj_rhs, "output", stats_setup_data->elem_restr_paren… in SpanwiseStatisticsSetupL2Projection()
310 …PetscCall(OperatorApplyContextCreate(NULL, spanstats->dm, ceed, op_proj_rhs, NULL, NULL, NULL, NUL… in SpanwiseStatisticsSetupL2Projection()
312 …PetscCall(QDataGet(ceed, spanstats->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, &elem_restr_qd, &q… in SpanwiseStatisticsSetupL2Projection()
315 PetscCall(HoneeMassQFunctionCreate(ceed, num_comp_stats, q_data_size, &qf_mass)); in SpanwiseStatisticsSetupL2Projection()
316 PetscCallCeed(ceed, CeedOperatorCreate(ceed, qf_mass, NULL, NULL, &op_mass)); in SpanwiseStatisticsSetupL2Projection()
317 PetscCallCeed(ceed, in SpanwiseStatisticsSetupL2Projection()
319 …PetscCallCeed(ceed, CeedOperatorSetField(op_mass, "qdata", elem_restr_qd, CEED_BASIS_NONE, q_data)… in SpanwiseStatisticsSetupL2Projection()
320 PetscCallCeed(ceed, in SpanwiseStatisticsSetupL2Projection()
345 PetscCallCeed(ceed, CeedElemRestrictionDestroy(&elem_restr_qd)); in SpanwiseStatisticsSetupL2Projection()
346 PetscCallCeed(ceed, CeedVectorDestroy(&q_data)); in SpanwiseStatisticsSetupL2Projection()
347 PetscCallCeed(ceed, CeedQFunctionDestroy(&qf_mass)); in SpanwiseStatisticsSetupL2Projection()
348 PetscCallCeed(ceed, CeedQFunctionDestroy(&qf_stats_proj)); in SpanwiseStatisticsSetupL2Projection()
349 PetscCallCeed(ceed, CeedOperatorDestroy(&op_mass)); in SpanwiseStatisticsSetupL2Projection()
350 PetscCallCeed(ceed, CeedOperatorDestroy(&op_proj_rhs)); in SpanwiseStatisticsSetupL2Projection()
395 PetscCallCeed(honee->ceed, in SpanwiseStatisticsSetupFinalize()
412 …PetscCallCeed(honee->ceed, CeedOperatorSetContextDouble(spanstats->op_stats_collect_ctx->op, spans… in SpanwiseStatisticsCollect()
416 …PetscCallCeed(honee->ceed, CeedOperatorSetContextDouble(spanstats->op_stats_collect_ctx->op, spans… in SpanwiseStatisticsCollect()