| /honee/src/ |
| H A D | setuplibceed.c | 15 Ceed ceed = honee->ceed; in CreateKSPMassOperator_Unstabilized() local 28 PetscCallCeed(ceed, CeedOperatorCompositeGetSubList(honee->op_rhs_ctx->op, &sub_ops)); in CreateKSPMassOperator_Unstabilized() 29 PetscCallCeed(ceed, CeedOperatorGetFieldByName(sub_ops[sub_op_index], "q", &op_field)); in CreateKSPMassOperator_Unstabilized() 30 PetscCallCeed(ceed, CeedOperatorFieldGetData(op_field, NULL, &elem_restr_q, &basis_q, NULL)); in CreateKSPMassOperator_Unstabilized() 31 PetscCallCeed(ceed, CeedOperatorGetFieldByName(sub_ops[sub_op_index], "qdata", &op_field)); in CreateKSPMassOperator_Unstabilized() 32 PetscCallCeed(ceed, CeedOperatorFieldGetData(op_field, NULL, &elem_restr_qd, NULL, &q_data)); in CreateKSPMassOperator_Unstabilized() 35 PetscCallCeed(ceed, CeedElemRestrictionGetNumComponents(elem_restr_q, &num_comp_q)); in CreateKSPMassOperator_Unstabilized() 36 PetscCallCeed(ceed, CeedElemRestrictionGetNumComponents(elem_restr_qd, &q_data_size)); in CreateKSPMassOperator_Unstabilized() 38 PetscCall(HoneeMassQFunctionCreate(ceed, num_comp_q, q_data_size, &qf_mass)); in CreateKSPMassOperator_Unstabilized() 39 PetscCallCeed(ceed, CeedOperatorCreate(ceed, qf_mass, NULL, NULL, op_mass)); in CreateKSPMassOperator_Unstabilized() [all …]
|
| H A D | qdata.c | 29 Ceed ceed = CeedVectorReturnCeed(q_data_created); in QDataGetStored() local 34 PetscCallCeed(ceed, CeedVectorGetLength(q_data_created, &created_length)); in QDataGetStored() 39 PetscCallCeed(ceed, CeedVectorGetLength(q_data_vecs[i], &stored_length)); in QDataGetStored() 41 PetscCallCeed(ceed, CeedVectorCreate(ceed, stored_length, &difference_cvec)); in QDataGetStored() 42 PetscCallCeed(ceed, CeedVectorCopy(q_data_vecs[i], difference_cvec)); in QDataGetStored() 43 PetscCallCeed(ceed, CeedVectorAXPY(difference_cvec, -1, q_data_created)); in QDataGetStored() 44 PetscCallCeed(ceed, CeedVectorNorm(difference_cvec, CEED_NORM_MAX, &max_difference)); in QDataGetStored() 46 PetscCallCeed(ceed, CeedVectorDestroy(&difference_cvec)); in QDataGetStored() 60 PetscCallCeed(ceed, CeedVectorReferenceCopy(q_data_created, &q_data_vecs[q_data_stored_index])); in QDataGetStored() 61 …PetscCallCeed(ceed, CeedElemRestrictionReferenceCopy(elem_restr_qd_created, &q_data_restrictions[q… in QDataGetStored() [all …]
|
| H A D | strong_boundary_conditions.c | 12 PetscErrorCode SetupStrongSTG_Ceed(Ceed ceed, Honee honee, DM dm, ProblemData problem, Physics phys… in SetupStrongSTG_Ceed() argument 35 …PetscCall(DMPlexCeedBasisCreate(ceed, dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, height_face, dm_… in SetupStrongSTG_Ceed() 36 …PetscCall(DMPlexCeedBasisCreate(ceed, dm_coord, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, height_fac… in SetupStrongSTG_Ceed() 38 PetscCallCeed(ceed, CeedBasisCreateProjection(basis_x_face, basis_q_face, &basis_x_to_q_face)); in SetupStrongSTG_Ceed() 40 PetscCallCeed(ceed, CeedBasisDestroy(&basis_q_face)); in SetupStrongSTG_Ceed() 41 PetscCallCeed(ceed, CeedBasisDestroy(&basis_x_face)); in SetupStrongSTG_Ceed() 45 …PetscCallCeed(ceed, CeedQFunctionCreateInterior(ceed, 1, SetupStrongBC, SetupStrongBC_loc, &qf_set… in SetupStrongSTG_Ceed() 46 PetscCallCeed(ceed, CeedQFunctionAddInput(qf_setup, "x", num_comp_x, CEED_EVAL_INTERP)); in SetupStrongSTG_Ceed() 47 PetscCallCeed(ceed, CeedQFunctionAddInput(qf_setup, "dxdX", dXdx_size, CEED_EVAL_GRAD)); in SetupStrongSTG_Ceed() 48 PetscCallCeed(ceed, CeedQFunctionAddInput(qf_setup, "multiplicity", num_comp_q, CEED_EVAL_NONE)); in SetupStrongSTG_Ceed() [all …]
|
| H A D | boundary_condition.c | 103 Ceed ceed = honee_bc->honee->ceed; in HoneeBCDestroy() local 106 if (honee_bc->qfctx) PetscCallCeed(ceed, CeedQFunctionContextDestroy(&honee_bc->qfctx)); in HoneeBCDestroy() 126 Ceed ceed; in HoneeBCCreateIFunctionQF() local 135 ceed = honee_bc->honee->ceed; in HoneeBCCreateIFunctionQF() 149 PetscCallCeed(ceed, CeedQFunctionCreateInterior(ceed, 1, qf_func_ptr, qf_loc, qf_ifunc)); in HoneeBCCreateIFunctionQF() 150 PetscCallCeed(ceed, CeedQFunctionSetContext(*qf_ifunc, qfctx)); in HoneeBCCreateIFunctionQF() 151 PetscCallCeed(ceed, CeedQFunctionSetUserFlopsEstimate(*qf_ifunc, 0)); in HoneeBCCreateIFunctionQF() 152 PetscCallCeed(ceed, CeedQFunctionAddInput(*qf_ifunc, "q", num_comp_q, CEED_EVAL_INTERP)); in HoneeBCCreateIFunctionQF() 153 …PetscCallCeed(ceed, CeedQFunctionAddInput(*qf_ifunc, "Grad_q", num_comp_q * dim_sur, CEED_EVAL_GRA… in HoneeBCCreateIFunctionQF() 154 …PetscCallCeed(ceed, CeedQFunctionAddInput(*qf_ifunc, "surface qdata", q_data_size_sur, CEED_EVAL_N… in HoneeBCCreateIFunctionQF() [all …]
|
| H A D | honee-mass.c | 19 PetscErrorCode HoneeMassQFunctionCreate(Ceed ceed, CeedInt N, CeedInt q_data_size, CeedQFunction *q… in HoneeMassQFunctionCreate() argument 23 PetscCallCeed(ceed, CeedQFunctionCreateInterior(ceed, 1, Mass_1, Mass_1_loc, qf)); in HoneeMassQFunctionCreate() 26 PetscCallCeed(ceed, CeedQFunctionCreateInterior(ceed, 1, Mass_2, Mass_2_loc, qf)); in HoneeMassQFunctionCreate() 29 PetscCallCeed(ceed, CeedQFunctionCreateInterior(ceed, 1, Mass_3, Mass_3_loc, qf)); in HoneeMassQFunctionCreate() 32 PetscCallCeed(ceed, CeedQFunctionCreateInterior(ceed, 1, Mass_4, Mass_4_loc, qf)); in HoneeMassQFunctionCreate() 35 PetscCallCeed(ceed, CeedQFunctionCreateInterior(ceed, 1, Mass_5, Mass_5_loc, qf)); in HoneeMassQFunctionCreate() 38 PetscCallCeed(ceed, CeedQFunctionCreateInterior(ceed, 1, Mass_6, Mass_6_loc, qf)); in HoneeMassQFunctionCreate() 41 PetscCallCeed(ceed, CeedQFunctionCreateInterior(ceed, 1, Mass_7, Mass_7_loc, qf)); in HoneeMassQFunctionCreate() 44 PetscCallCeed(ceed, CeedQFunctionCreateInterior(ceed, 1, Mass_9, Mass_9_loc, qf)); in HoneeMassQFunctionCreate() 47 PetscCallCeed(ceed, CeedQFunctionCreateInterior(ceed, 1, Mass_12, Mass_12_loc, qf)); in HoneeMassQFunctionCreate() [all …]
|
| H A D | differential_filter.c | 17 Ceed ceed = honee->ceed; in DifferentialFilterCreateOperators() local 29 …PetscCall(DMPlexCeedCoordinateCreateField(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE,… in DifferentialFilterCreateOperators() 30 …PetscCall(QDataGet(ceed, dm_filter, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, &elem_restr_qd, &q_dat… in DifferentialFilterCreateOperators() 39 …PetscCallCeed(ceed, CeedQFunctionCreateInterior(ceed, 1, DifferentialFilter_RHS_Prim, Differential… in DifferentialFilterCreateOperators() 42 …PetscCallCeed(ceed, CeedQFunctionCreateInterior(ceed, 1, DifferentialFilter_RHS_Conserv, Different… in DifferentialFilterCreateOperators() 45 …PetscCallCeed(ceed, CeedQFunctionCreateInterior(ceed, 1, DifferentialFilter_RHS_Entropy, Different… in DifferentialFilterCreateOperators() 49 PetscCallCeed(ceed, CeedQFunctionDestroy(&qf_rhs)); in DifferentialFilterCreateOperators() 50 …PetscCallCeed(ceed, CeedQFunctionCreateInterior(ceed, 1, DifferentialFilter_MMS_RHS, DifferentialF… in DifferentialFilterCreateOperators() 52 …PetscCall(DMPlexCeedElemRestrictionCreate(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE,… in DifferentialFilterCreateOperators() 53 …PetscCall(DMPlexCeedBasisCreate(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, 0, 0, &ba… in DifferentialFilterCreateOperators() [all …]
|
| H A D | grid_anisotropy_tensor.c | 10 PetscErrorCode GridAnisotropyTensorProjectionSetupApply(Ceed ceed, Honee honee, CeedElemRestriction… in GridAnisotropyTensorProjectionSetupApply() argument 47 …PetscCall(DMPlexCeedElemRestrictionCreate(ceed, grid_aniso_proj->dm, DMLABEL_DEFAULT, DMLABEL_DEFA… in GridAnisotropyTensorProjectionSetupApply() 49 …PetscCall(DMPlexCeedBasisCreate(ceed, grid_aniso_proj->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE,… in GridAnisotropyTensorProjectionSetupApply() 50 …PetscCall(QDataGet(ceed, grid_aniso_proj->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, &elem_restr_… in GridAnisotropyTensorProjectionSetupApply() 56 …PetscCallCeed(ceed, CeedQFunctionCreateInterior(ceed, 1, AnisotropyTensorProjection, AnisotropyTen… in GridAnisotropyTensorProjectionSetupApply() 57 … PetscCallCeed(ceed, CeedQFunctionAddInput(qf_rhs_assemble, "qdata", q_data_size, CEED_EVAL_NONE)); in GridAnisotropyTensorProjectionSetupApply() 58 …PetscCallCeed(ceed, CeedQFunctionAddOutput(qf_rhs_assemble, "v", grid_aniso_proj->num_comp, CEED_E… in GridAnisotropyTensorProjectionSetupApply() 60 PetscCallCeed(ceed, CeedOperatorCreate(ceed, qf_rhs_assemble, NULL, NULL, &op_rhs_assemble)); in GridAnisotropyTensorProjectionSetupApply() 61 …PetscCallCeed(ceed, CeedOperatorSetField(op_rhs_assemble, "qdata", elem_restr_qd, CEED_BASIS_NONE,… in GridAnisotropyTensorProjectionSetupApply() 62 …PetscCallCeed(ceed, CeedOperatorSetField(op_rhs_assemble, "v", *elem_restr_grid_aniso, basis_grid_… in GridAnisotropyTensorProjectionSetupApply() [all …]
|
| H A D | velocity_gradient_projection.c | 39 PetscErrorCode VelocityGradientProjectionSetup(Ceed ceed, Honee honee, ProblemData problem, StateVa… in VelocityGradientProjectionSetup() argument 55 …PetscCall(DMPlexCeedElemRestrictionCreate(ceed, grad_velo_proj->dm, DMLABEL_DEFAULT, DMLABEL_DEFAU… in VelocityGradientProjectionSetup() 57 …PetscCall(DMPlexCeedBasisCreate(ceed, grad_velo_proj->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, … in VelocityGradientProjectionSetup() 58 …PetscCall(QDataGet(ceed, grad_velo_proj->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, &elem_restr_q… in VelocityGradientProjectionSetup() 69 …PetscCall(DMPlexCeedCoordinateCreateField(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE,… in VelocityGradientProjectionSetup() 72 …PetscCallCeed(ceed, CeedQFunctionCreateInterior(ceed, 1, VelocityGradientProjectionRHS_Prim, Veloc… in VelocityGradientProjectionSetup() 76 …PetscCallCeed(ceed, CeedQFunctionCreateInterior(ceed, 1, VelocityGradientProjectionRHS_Conserv, Ve… in VelocityGradientProjectionSetup() 80 …PetscCallCeed(ceed, CeedQFunctionCreateInterior(ceed, 1, VelocityGradientProjectionRHS_Entropy, Ve… in VelocityGradientProjectionSetup() 85 … PetscCallCeed(ceed, CeedQFunctionSetContext(qf_rhs_assemble, problem->apply_vol_ifunction.qfctx)); in VelocityGradientProjectionSetup() 86 …PetscCallCeed(ceed, CeedQFunctionAddInput(qf_rhs_assemble, "q", num_comp_input, CEED_EVAL_INTERP)); in VelocityGradientProjectionSetup() [all …]
|
| H A D | monitor_cfl.c | 28 Ceed ceed; in SetupMontiorCfl() local 45 ceed = honee->ceed; in SetupMontiorCfl() 49 …PetscCall(DMPlexCeedElemRestrictionCreate(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE,… in SetupMontiorCfl() 50 …PetscCall(DMPlexCeedBasisCreate(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, 0, 0, &ba… in SetupMontiorCfl() 51 PetscCallCeed(ceed, CeedElemRestrictionGetNumComponents(elem_restr_q, &num_comp_q)); in SetupMontiorCfl() 52 …PetscCall(QDataGet(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, &elem_restr_qd, &q_dat… in SetupMontiorCfl() 53 …PetscCall(DMPlexCeedElemRestrictionQDataCreate(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_V… in SetupMontiorCfl() 59 PetscCallCeed(ceed, CeedOperatorCompositeGetSubList(main_op, &sub_ops)); in SetupMontiorCfl() 60 PetscCallCeed(ceed, CeedOperatorGetContext(sub_ops[sub_op_index], &newt_qfctx)); in SetupMontiorCfl() 67 …PetscCallCeed(ceed, CeedQFunctionCreateInterior(ceed, 1, MonitorCFL_2D_Prim, MonitorCFL_2D_Prim_lo… in SetupMontiorCfl() [all …]
|
| H A D | diff_flux_projection.c | 50 …PetscCall(DMPlexCeedElemRestrictionCreate(honee->ceed, projection->dm, DMLABEL_DEFAULT, DMLABEL_DE… in DivDiffFluxProjectionCreate() 52 PetscCallCeed(honee->ceed, in DivDiffFluxProjectionCreate() 54 …PetscCall(DMPlexCeedBasisCreate(honee->ceed, projection->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALU… in DivDiffFluxProjectionCreate() 81 …PetscCall(DMPlexCeedElemRestrictionQDataCreate(honee->ceed, projection->dm, DMLABEL_DEFAULT, DMLAB… in DivDiffFluxProjectionCreate() 83 PetscCallCeed(honee->ceed, in DivDiffFluxProjectionCreate() 108 Ceed ceed = CeedVectorReturnCeed(diff_flux_proj->div_diff_flux_ceed); in DivDiffFluxProjectionGetOperatorFieldData() local 111 …if (elem_restr) PetscCallCeed(ceed, CeedElemRestrictionReferenceCopy(diff_flux_proj->elem_restr_di… in DivDiffFluxProjectionGetOperatorFieldData() 112 …if (basis) PetscCallCeed(ceed, CeedBasisReferenceCopy(diff_flux_proj->basis_div_diff_flux, basis)); in DivDiffFluxProjectionGetOperatorFieldData() 113 …if (vector) PetscCallCeed(ceed, CeedVectorReferenceCopy(diff_flux_proj->div_diff_flux_ceed, vector… in DivDiffFluxProjectionGetOperatorFieldData() 125 Ceed ceed = honee->ceed; in DivDiffFluxProjectionSetup_Direct() local [all …]
|
| H A D | inverse_multiplicity.c | 23 PetscErrorCode GetInverseMultiplicity(Ceed ceed, DM dm, DMLabel domain_label, PetscInt label_value,… in GetInverseMultiplicity() argument 35 …PetscCall(DMPlexCeedElemRestrictionCollocatedCreate(ceed, dm, domain_label, label_value, height, 1… in GetInverseMultiplicity() 36 …PetscCallCeed(ceed, CeedElemRestrictionCreateVector(*elem_restr_inv_multiplicity, inv_multiplicity… in GetInverseMultiplicity() 38 …PetscCall(DMPlexCeedElemRestrictionCreate(ceed, dm, domain_label, label_value, height, dm_field, &… in GetInverseMultiplicity() 39 PetscCallCeed(ceed, CeedElemRestrictionGetNumComponents(elem_restr, &num_comp)); in GetInverseMultiplicity() 40 PetscCallCeed(ceed, CeedElemRestrictionCreateVector(elem_restr, &multiplicity, NULL)); in GetInverseMultiplicity() 48 PetscCallCeed(ceed, CeedElemRestrictionGetMultiplicity(elem_restr, multiplicity)); in GetInverseMultiplicity() 55 PetscCallCeed(ceed, CeedElemRestrictionGetMultiplicity(elem_restr, multiplicity)); in GetInverseMultiplicity() 58 …PetscCallCeed(ceed, CeedQFunctionCreateInterior(ceed, 1, InverseMultiplicity, InverseMultiplicity_… in GetInverseMultiplicity() 59 …PetscCallCeed(ceed, CeedQFunctionAddInput(qf_multiplicity, "multiplicity", num_comp, CEED_EVAL_NON… in GetInverseMultiplicity() [all …]
|
| H A D | monitor_totalkineticenergy.c | 33 static PetscErrorCode CreateElemRestrColloc_CompMajor(Ceed ceed, CeedInt num_comp, CeedBasis basis,… in CreateElemRestrColloc_CompMajor() argument 38 PetscCallCeed(ceed, CeedBasisGetNumQuadraturePoints(basis, &num_elem_qpts)); in CreateElemRestrColloc_CompMajor() 39 PetscCallCeed(ceed, CeedElemRestrictionGetNumElements(elem_restr_base, &loc_num_elem)); in CreateElemRestrColloc_CompMajor() 42 …PetscCallCeed(ceed, CeedElemRestrictionCreateStrided(ceed, loc_num_elem, num_elem_qpts, num_comp, … in CreateElemRestrColloc_CompMajor() 49 Ceed ceed; in SetupMontiorTotalKineticEnergy() local 66 ceed = honee->ceed; in SetupMontiorTotalKineticEnergy() 74 PetscCallCeed(ceed, CeedOperatorCompositeGetSubList(main_op, &sub_ops)); in SetupMontiorTotalKineticEnergy() 75 PetscCallCeed(ceed, CeedOperatorGetContext(sub_ops[sub_op_index], &newt_qfctx)); in SetupMontiorTotalKineticEnergy() 77 …PetscCall(QDataGet(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, &elem_restr_qd, &q_dat… in SetupMontiorTotalKineticEnergy() 78 …PetscCall(DMPlexCeedElemRestrictionCreate(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE,… in SetupMontiorTotalKineticEnergy() [all …]
|
| H A D | petsc_ops.c | 55 PetscErrorCode OperatorApplyContextCreate(DM dm_x, DM dm_y, Ceed ceed, CeedOperator op_apply, CeedV… in OperatorApplyContextCreate() argument 60 PetscCallCeed(ceed, CeedOperatorGetActiveVectorLengths(op_apply, &x_size, &y_size)); in OperatorApplyContextCreate() 83 PetscCallCeed(ceed, CeedVectorGetLength(x_ceed, &x_ceed_size)); in OperatorApplyContextCreate() 91 PetscCallCeed(ceed, CeedVectorGetLength(y_ceed, &y_ceed_size)); in OperatorApplyContextCreate() 114 if (x_ceed) PetscCallCeed(ceed, CeedVectorReferenceCopy(x_ceed, &(*ctx)->x_ceed)); in OperatorApplyContextCreate() 115 else PetscCallCeed(ceed, CeedVectorCreate(ceed, x_size, &(*ctx)->x_ceed)); in OperatorApplyContextCreate() 117 if (y_ceed) PetscCallCeed(ceed, CeedVectorReferenceCopy(y_ceed, &(*ctx)->y_ceed)); in OperatorApplyContextCreate() 118 else PetscCallCeed(ceed, CeedVectorCreate(ceed, y_size, &(*ctx)->y_ceed)); in OperatorApplyContextCreate() 120 PetscCallCeed(ceed, CeedOperatorReferenceCopy(op_apply, &(*ctx)->op)); in OperatorApplyContextCreate() 121 PetscCallCeed(ceed, CeedReferenceCopy(ceed, &(*ctx)->ceed)); in OperatorApplyContextCreate() [all …]
|
| H A D | misc.c | 15 Ceed ceed = honee->ceed; in ICs_FixMultiplicity() local 22 …if (honee->phys->ics_time_label) PetscCallCeed(ceed, CeedOperatorSetContextDouble(honee->op_ics_ct… in ICs_FixMultiplicity() 26 …PetscCall(DMPlexCeedElemRestrictionCreate(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE,… in ICs_FixMultiplicity() 27 PetscCallCeed(ceed, CeedElemRestrictionCreateVector(elem_restr_q, &mult_vec, NULL)); in ICs_FixMultiplicity() 30 PetscCallCeed(ceed, CeedElemRestrictionGetMultiplicity(elem_restr_q, mult_vec)); in ICs_FixMultiplicity() 43 PetscCallCeed(ceed, CeedVectorDestroy(&mult_vec)); in ICs_FixMultiplicity() 44 PetscCallCeed(ceed, CeedElemRestrictionDestroy(&elem_restr_q)); in ICs_FixMultiplicity() 220 Ceed ceed = honee->ceed; in HoneeCalculateDomainSize() local 233 …PetscCall(QDataGet(ceed, dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, &elem_restr_qd, &qdata, &q_da… in HoneeCalculateDomainSize() 234 …PetscCall(DMPlexCeedCoordinateCreateField(ceed, dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, 0, &el… in HoneeCalculateDomainSize() [all …]
|
| /honee/problems/ |
| H A D | advection.c | 23 Ceed ceed = honee->ceed; in PRINT_ADVECTION() local 30 PetscCallCeed(ceed, CeedQFunctionContextGetData(problem->ics.qfctx, CEED_MEM_HOST, &setup_ctx)); in PRINT_ADVECTION() 31 …PetscCallCeed(ceed, CeedQFunctionContextGetData(problem->apply_vol_rhs.qfctx, CEED_MEM_HOST, &adve… in PRINT_ADVECTION() 68 PetscCallCeed(ceed, CeedQFunctionContextRestoreData(problem->ics.qfctx, &setup_ctx)); in PRINT_ADVECTION() 69 …PetscCallCeed(ceed, CeedQFunctionContextRestoreData(problem->apply_vol_rhs.qfctx, &advection_ctx)); in PRINT_ADVECTION() 77 Ceed ceed = honee->ceed; in CreateKSPMassOperator_AdvectionStabilized() local 93 PetscCallCeed(ceed, CeedOperatorCompositeGetSubList(honee->op_rhs_ctx->op, &sub_ops)); in CreateKSPMassOperator_AdvectionStabilized() 94 PetscCallCeed(ceed, CeedOperatorGetFieldByName(sub_ops[sub_op_index], "q", &op_field)); in CreateKSPMassOperator_AdvectionStabilized() 95 PetscCallCeed(ceed, CeedOperatorFieldGetData(op_field, NULL, &elem_restr_q, &basis_q, NULL)); in CreateKSPMassOperator_AdvectionStabilized() 96 PetscCallCeed(ceed, CeedOperatorGetFieldByName(sub_ops[sub_op_index], "qdata", &op_field)); in CreateKSPMassOperator_AdvectionStabilized() [all …]
|
| H A D | sgs_dd_model.c | 30 Ceed ceed = sgs_dd_data_->op_sgs_apply_ctx->ceed; in SgsDDDataDestroy() local 32 PetscCallCeed(ceed, CeedVectorDestroy(&sgs_dd_data_->sgs_nodal_ceed)); in SgsDDDataDestroy() 33 PetscCallCeed(ceed, CeedVectorDestroy(&sgs_dd_data_->grad_velo_ceed)); in SgsDDDataDestroy() 58 Ceed ceed; in SgsDDSetupDataDestroy() local 61 PetscCall(CeedElemRestrictionGetCeed(sgs_dd_setup_data->elem_restr_sgs, &ceed)); in SgsDDSetupDataDestroy() 63 PetscCallCeed(ceed, CeedElemRestrictionDestroy(&sgs_dd_setup_data->elem_restr_grid_aniso)); in SgsDDSetupDataDestroy() 64 PetscCallCeed(ceed, CeedElemRestrictionDestroy(&sgs_dd_setup_data->elem_restr_sgs)); in SgsDDSetupDataDestroy() 65 PetscCallCeed(ceed, CeedVectorDestroy(&sgs_dd_setup_data->grid_aniso_ceed)); in SgsDDSetupDataDestroy() 66 PetscCallCeed(ceed, CeedQFunctionContextDestroy(&sgs_dd_setup_data->sgsdd_qfctx)); in SgsDDSetupDataDestroy() 67 PetscCallCeed(ceed, CeedQFunctionContextDestroy(&sgs_dd_setup_data->ifunction_qfctx)); in SgsDDSetupDataDestroy() [all …]
|
| H A D | newtonian.c | 21 Ceed ceed = honee->ceed; in PRINT_NEWTONIAN() local 25 …PetscCallCeed(ceed, CeedQFunctionContextGetData(problem->apply_vol_rhs.qfctx, CEED_MEM_HOST, &newt… in PRINT_NEWTONIAN() 31 PetscCallCeed(ceed, CeedQFunctionContextRestoreData(problem->apply_vol_rhs.qfctx, &newt_ctx)); in PRINT_NEWTONIAN() 39 Ceed ceed = honee->ceed; in CreateKSPMassOperator_NewtonianStabilized() local 54 PetscCallCeed(ceed, CeedOperatorCompositeGetSubList(honee->op_rhs_ctx->op, &sub_ops)); in CreateKSPMassOperator_NewtonianStabilized() 55 PetscCallCeed(ceed, CeedOperatorGetFieldByName(sub_ops[sub_op_index], "q", &op_field)); in CreateKSPMassOperator_NewtonianStabilized() 56 PetscCallCeed(ceed, CeedOperatorFieldGetData(op_field, NULL, &elem_restr_q, &basis_q, NULL)); in CreateKSPMassOperator_NewtonianStabilized() 57 PetscCallCeed(ceed, CeedOperatorGetFieldByName(sub_ops[sub_op_index], "qdata", &op_field)); in CreateKSPMassOperator_NewtonianStabilized() 58 PetscCallCeed(ceed, CeedOperatorFieldGetData(op_field, NULL, &elem_restr_qd, NULL, &q_data)); in CreateKSPMassOperator_NewtonianStabilized() 60 PetscCallCeed(ceed, CeedOperatorGetContext(sub_ops[sub_op_index], &qfctx)); in CreateKSPMassOperator_NewtonianStabilized() [all …]
|
| H A D | taylorgreen.c | 13 Ceed ceed = honee->ceed; in NS_TAYLOR_GREEN() local 23 PetscCallCeed(ceed, CeedQFunctionContextGetData(problem->ics.qfctx, CEED_MEM_HOST, &setup_ctx)); in NS_TAYLOR_GREEN() 31 PetscCallCeed(ceed, CeedQFunctionContextRestoreData(problem->ics.qfctx, &setup_ctx)); in NS_TAYLOR_GREEN() 39 PetscCallCeed(ceed, CeedQFunctionContextCreate(honee->ceed, &taylorgreen_qfctx)); in NS_TAYLOR_GREEN() 40 …PetscCallCeed(ceed, CeedQFunctionContextSetData(taylorgreen_qfctx, CEED_MEM_HOST, CEED_USE_POINTER… in NS_TAYLOR_GREEN() 41 …PetscCallCeed(ceed, CeedQFunctionContextSetDataDestroy(taylorgreen_qfctx, CEED_MEM_HOST, FreeConte… in NS_TAYLOR_GREEN() 43 PetscCallCeed(ceed, CeedQFunctionContextDestroy(&problem->ics.qfctx)); in NS_TAYLOR_GREEN()
|
| H A D | gaussianwave.c | 18 Ceed ceed = honee->ceed; in NS_GAUSSIAN_WAVE() local 44 …PetscCallCeed(ceed, CeedQFunctionContextGetData(problem->apply_vol_rhs.qfctx, CEED_MEM_HOST, &newt… in NS_GAUSSIAN_WAVE() 54 … PetscCallCeed(ceed, CeedQFunctionContextGetData(honee_bc->qfctx, CEED_MEM_HOST, &freestream_ctx)); in NS_GAUSSIAN_WAVE() 56 PetscCallCeed(ceed, CeedQFunctionContextRestoreData(honee_bc->qfctx, &freestream_ctx)); in NS_GAUSSIAN_WAVE() 66 …PetscCallCeed(ceed, CeedQFunctionContextRestoreData(problem->apply_vol_rhs.qfctx, &newtonian_ig_ct… in NS_GAUSSIAN_WAVE() 68 PetscCallCeed(ceed, CeedQFunctionContextCreate(honee->ceed, &gausswave_qfctx)); in NS_GAUSSIAN_WAVE() 69 …PetscCallCeed(ceed, CeedQFunctionContextSetData(gausswave_qfctx, CEED_MEM_HOST, CEED_USE_POINTER, … in NS_GAUSSIAN_WAVE() 70 …PetscCallCeed(ceed, CeedQFunctionContextSetDataDestroy(gausswave_qfctx, CEED_MEM_HOST, FreeContext… in NS_GAUSSIAN_WAVE() 71 PetscCallCeed(ceed, CeedQFunctionContextDestroy(&problem->ics.qfctx)); in NS_GAUSSIAN_WAVE()
|
| H A D | eulervortex.c | 16 Ceed ceed = honee->ceed; in PRINT_EULER_VORTEX() local 20 PetscCallCeed(ceed, CeedQFunctionContextGetData(problem->ics.qfctx, CEED_MEM_HOST, &euler_ctx)); in PRINT_EULER_VORTEX() 30 PetscCallCeed(ceed, CeedQFunctionContextRestoreData(problem->ics.qfctx, &euler_ctx)); in PRINT_EULER_VORTEX() 59 Ceed ceed = honee->ceed; in NS_EULER_VORTEX() local 148 PetscCallCeed(ceed, CeedQFunctionContextCreate(honee->ceed, &euler_qfctx)); in NS_EULER_VORTEX() 149 …PetscCallCeed(ceed, CeedQFunctionContextSetData(euler_qfctx, CEED_MEM_HOST, CEED_USE_POINTER, size… in NS_EULER_VORTEX() 150 …PetscCallCeed(ceed, CeedQFunctionContextSetDataDestroy(euler_qfctx, CEED_MEM_HOST, FreeContextPets… in NS_EULER_VORTEX() 151 …PetscCallCeed(ceed, CeedQFunctionContextRegisterDouble(euler_qfctx, "solution time", offsetof(stru… in NS_EULER_VORTEX() 153 PetscCallCeed(ceed, CeedQFunctionContextReferenceCopy(euler_qfctx, &problem->ics.qfctx)); in NS_EULER_VORTEX() 154 …PetscCallCeed(ceed, CeedQFunctionContextReferenceCopy(euler_qfctx, &problem->apply_vol_rhs.qfctx)); in NS_EULER_VORTEX() [all …]
|
| /honee/src/spanstats/ |
| H A D | turbulence.c | 18 Ceed ceed = honee->ceed; in CreateStatisticCollectionOperator() local 37 …PetscCallCeed(ceed, CeedQFunctionCreateInterior(ceed, 1, ChildStatsCollection_Prim, ChildStatsColl… in CreateStatisticCollectionOperator() 40 …PetscCallCeed(ceed, CeedQFunctionCreateInterior(ceed, 1, ChildStatsCollection_Conserv, ChildStatsC… in CreateStatisticCollectionOperator() 43 …PetscCallCeed(ceed, CeedQFunctionCreateInterior(ceed, 1, ChildStatsCollection_Entropy, ChildStatsC… in CreateStatisticCollectionOperator() 48 PetscCallCeed(ceed, CeedQFunctionDestroy(&qf_stats_collect)); in CreateStatisticCollectionOperator() 49 …PetscCallCeed(ceed, CeedQFunctionCreateInterior(ceed, 1, ChildStatsCollectionMMSTest, ChildStatsCo… in CreateStatisticCollectionOperator() 52 …PetscCall(DMPlexCeedCoordinateCreateField(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE,… in CreateStatisticCollectionOperator() 53 …PetscCall(DMPlexCeedElemRestrictionCreate(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE,… in CreateStatisticCollectionOperator() 54 …PetscCall(DMPlexCeedBasisCreate(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, 0, 0, &ba… in CreateStatisticCollectionOperator() 55 …PetscCall(QDataGet(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE, &elem_restr_qd, &q_dat… in CreateStatisticCollectionOperator() [all …]
|
| H A D | cflpe.c | 19 Ceed ceed = honee->ceed; in CreateStatisticCollectionOperator() local 40 PetscCallCeed(ceed, in CreateStatisticCollectionOperator() 41 …CeedQFunctionCreateInterior(ceed, 1, ChildStatsCollection_2D_Prim, ChildStatsCollection_2D_Prim_lo… in CreateStatisticCollectionOperator() 44 …PetscCallCeed(ceed, CeedQFunctionCreateInterior(ceed, 1, ChildStatsCollection_2D_Conserv, ChildSta… in CreateStatisticCollectionOperator() 48 …PetscCallCeed(ceed, CeedQFunctionCreateInterior(ceed, 1, ChildStatsCollection_2D_Entropy, ChildSta… in CreateStatisticCollectionOperator() 56 PetscCallCeed(ceed, in CreateStatisticCollectionOperator() 57 …CeedQFunctionCreateInterior(ceed, 1, ChildStatsCollection_3D_Prim, ChildStatsCollection_3D_Prim_lo… in CreateStatisticCollectionOperator() 60 …PetscCallCeed(ceed, CeedQFunctionCreateInterior(ceed, 1, ChildStatsCollection_3D_Conserv, ChildSta… in CreateStatisticCollectionOperator() 64 …PetscCallCeed(ceed, CeedQFunctionCreateInterior(ceed, 1, ChildStatsCollection_3D_Entropy, ChildSta… in CreateStatisticCollectionOperator() 74 …PetscCall(DMPlexCeedCoordinateCreateField(ceed, honee->dm, DMLABEL_DEFAULT, DMLABEL_DEFAULT_VALUE,… in CreateStatisticCollectionOperator() [all …]
|
| H A D | spanstats.c | 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() [all …]
|
| /honee/src/smartsim/ |
| H A D | sgs_dd_training.c | 46 Ceed ceed; in SGS_DD_TrainingSetupDataDestroy() local 49 PetscCall(CeedElemRestrictionGetCeed(sgs_dd_train_setup_data->elem_restr_grid_aniso, &ceed)); in SGS_DD_TrainingSetupDataDestroy() 51 PetscCallCeed(ceed, CeedElemRestrictionDestroy(&sgs_dd_train_setup_data->elem_restr_grid_aniso)); in SGS_DD_TrainingSetupDataDestroy() 52 PetscCallCeed(ceed, CeedVectorDestroy(&sgs_dd_train_setup_data->grid_aniso_ceed)); in SGS_DD_TrainingSetupDataDestroy() 53 PetscCallCeed(ceed, CeedQFunctionContextDestroy(&sgs_dd_train_setup_data->sgs_dd_train_qfctx)); in SGS_DD_TrainingSetupDataDestroy() 55 …PetscCheck(CeedDestroy(&ceed) == CEED_ERROR_SUCCESS, PETSC_COMM_SELF, PETSC_ERR_LIB, "Destroying C… in SGS_DD_TrainingSetupDataDestroy() 90 static PetscErrorCode SetupTrainingDataCalculation(Ceed ceed, Honee honee, ProblemData problem, SGS… in SetupTrainingDataCalculation() argument 101 …PetscCallCeed(ceed, CeedElemRestrictionGetNumComponents(sgs_dd_train_setup_data->elem_restr_grid_a… in SetupTrainingDataCalculation() 103 …PetscCall(DMPlexCeedElemRestrictionCreate(ceed, sgs_dd_train->dm_dd_training, DMLABEL_DEFAULT, DML… in SetupTrainingDataCalculation() 105 …PetscCall(GetInverseMultiplicity(ceed, sgs_dd_train->dm_dd_training, DMLABEL_DEFAULT, DMLABEL_DEFA… in SetupTrainingDataCalculation() [all …]
|
| /honee/examples/ |
| H A D | navierstokes.c | 43 Ceed ceed; in main() local 45 …PetscCheck(CeedInit(app_ctx->ceed_resource, &ceed) == CEED_ERROR_SUCCESS, comm, PETSC_ERR_LIB, "Ce… in main() 46 honee->ceed = ceed; in main() 47 …PetscCheck(CeedSetErrorHandler(ceed, CeedErrorStore) == CEED_ERROR_SUCCESS, comm, PETSC_ERR_LIB, "… in main() 51 PetscCallCeed(ceed, CeedGetResource(ceed, &resource)); in main() 57 PetscCallCeed(ceed, CeedSetStream(ceed, stream_handle)); in main() 68 PetscCallCeed(ceed, CeedGetPreferredMemType(ceed, &mem_type_backend)); in main() 75 PetscCallCeed(ceed, CeedGetResource(ceed, &resource)); in main() 120 PetscCall(SetupLibceed(ceed, dm, honee, app_ctx, problem)); in main()
|