Home
last modified time | relevance | path

Searched refs:num_comp (Results 1 – 14 of 14) sorted by relevance

/honee/src/
H A Ddm-utils.c101 PetscInt num_elem, elem_size, num_dof, num_comp, *restriction_offsets_petsc; in DMPlexCeedElemRestrictionCreate() local
105 …ffsets(dm, domain_label, label_value, height, dm_field, &num_elem, &elem_size, &num_comp, &num_dof, in DMPlexCeedElemRestrictionCreate()
108 …PetscCallCeed(ceed, CeedElemRestrictionCreate(ceed, num_elem, elem_size, num_comp, 1, num_dof, CEE… in DMPlexCeedElemRestrictionCreate()
212 PetscInt num_dual_basis_vectors, dim, num_comp; in DMPlexCeedElemRestrictionStridedCreate() local
215 PetscCall(PetscFEGetNumComponents(fe, &num_comp)); in DMPlexCeedElemRestrictionStridedCreate()
218 num_qpts = num_dual_basis_vectors / num_comp; in DMPlexCeedElemRestrictionStridedCreate()
294 static PetscErrorCode PetscDTUniformTensorQuadrature(PetscInt dim, PetscInt num_comp, PetscInt num_… in PetscDTUniformTensorQuadrature() argument
302 PetscCall(PetscMalloc1(num_total_points * num_comp, &weights)); in PetscDTUniformTensorQuadrature()
310 PetscCall(PetscMalloc1(num_comp, &weights)); in PetscDTUniformTensorQuadrature()
313 for (PetscInt c = 0; c < num_comp; c++) weights[c] = 1.0; in PetscDTUniformTensorQuadrature()
[all …]
H A Dinverse_multiplicity.c31 CeedInt num_comp; in GetInverseMultiplicity() local
39 PetscCallCeed(ceed, CeedElemRestrictionGetNumComponents(elem_restr, &num_comp)); in GetInverseMultiplicity()
59 …PetscCallCeed(ceed, CeedQFunctionAddInput(qf_multiplicity, "multiplicity", num_comp, CEED_EVAL_NON… in GetInverseMultiplicity()
H A Dvelocity_gradient_projection.c16 grad_velo_proj->num_comp = 9; // 9 velocity gradient in VelocityGradientProjectionCreateDM()
22 …TRUE, PETSC_TRUE, honee->app_ctx->degree, 1, honee->app_ctx->q_extra, 1, &grad_velo_proj->num_comp, in VelocityGradientProjectionCreateDM()
90 …FunctionAddOutput(qf_rhs_assemble, "velocity gradient", grad_velo_proj->num_comp, CEED_EVAL_INTERP… in VelocityGradientProjectionSetup()
113 PetscCall(HoneeMassQFunctionCreate(ceed, grad_velo_proj->num_comp, q_data_size, &qf_mass)); in VelocityGradientProjectionSetup()
H A Ddiff_flux_projection.c46 projection->num_comp = diff_flux_proj_->num_diff_flux_comps; in DivDiffFluxProjectionCreate()
48 …ByOrder_FEM(PETSC_TRUE, PETSC_TRUE, degree, 1, q_extra, 1, &projection->num_comp, projection->dm)); in DivDiffFluxProjectionCreate()
77 projection->num_comp = diff_flux_proj_->num_diff_flux_comps * dim; in DivDiffFluxProjectionCreate()
79 …ByOrder_FEM(PETSC_TRUE, PETSC_TRUE, degree, 1, q_extra, 1, &projection->num_comp, projection->dm)); in DivDiffFluxProjectionCreate()
154 PetscCall(HoneeMassQFunctionCreate(ceed, projection->num_comp, q_data_size, &qf_mass)); in DivDiffFluxProjectionSetup_Direct()
226 PetscCall(HoneeMassQFunctionCreate(ceed, projection->num_comp, q_data_size, &qf_mass)); in DivDiffFluxProjectionSetup_Indirect()
290 …d, CeedQFunctionAddInput(qf_calc_divergence, "Grad F_diff", projection->num_comp * dim, CEED_EVAL_… in DivDiffFluxProjectionSetup_Indirect()
H A Dgrid_anisotropy_tensor.c31 grid_aniso_proj->num_comp = 7; in GridAnisotropyTensorProjectionSetupApply()
32 …RUE, PETSC_TRUE, honee->app_ctx->degree, 1, honee->app_ctx->q_extra, 1, &grid_aniso_proj->num_comp, in GridAnisotropyTensorProjectionSetupApply()
58 …PetscCallCeed(ceed, CeedQFunctionAddOutput(qf_rhs_assemble, "v", grid_aniso_proj->num_comp, CEED_E… in GridAnisotropyTensorProjectionSetupApply()
76 PetscCall(HoneeMassQFunctionCreate(ceed, grid_aniso_proj->num_comp, q_data_size, &qf_mass)); in GridAnisotropyTensorProjectionSetupApply()
H A Dmonitor_totalkineticenergy.c33 static PetscErrorCode CreateElemRestrColloc_CompMajor(Ceed ceed, CeedInt num_comp, CeedBasis basis,… in CreateElemRestrColloc_CompMajor() argument
41 const CeedInt strides[] = {num_comp, 1, num_elem_qpts * num_comp}; in CreateElemRestrColloc_CompMajor()
42 …eedElemRestrictionCreateStrided(ceed, loc_num_elem, num_elem_qpts, num_comp, num_comp * loc_num_el… in CreateElemRestrColloc_CompMajor()
H A Dmat-ceed.c464 CeedInt num_bases, num_comp; in MatCreateCeed() local
470 PetscCallCeed(ctx->ceed, CeedBasisGetNumComponents(active_bases[0], &num_comp)); in MatCreateCeed()
475 if (num_comp != block_size) ctx->is_ceed_pbd_valid = PETSC_FALSE; in MatCreateCeed()
476 if (num_comp < max_vblock_size) ctx->is_ceed_vpbd_valid = PETSC_FALSE; in MatCreateCeed()
480 CeedInt num_bases, num_comp; in MatCreateCeed() local
486 PetscCallCeed(ctx->ceed, CeedBasisGetNumComponents(active_bases[0], &num_comp)); in MatCreateCeed()
491 if (num_comp != block_size) ctx->is_ceed_pbd_valid = PETSC_FALSE; in MatCreateCeed()
492 if (num_comp < max_vblock_size) ctx->is_ceed_vpbd_valid = PETSC_FALSE; in MatCreateCeed()
H A Dsetupts.c85 PetscInt num_points, num_comp = 0; in Surface_Forces_NS() local
91 PetscCall(PetscSectionGetFieldComponents(section, 0, &num_comp)); in Surface_Forces_NS()
101 for (PetscInt node = 0; node < dof / num_comp; node++) { in Surface_Forces_NS()
/honee/qfunctions/
H A Dutils.h309 CEED_QFUNCTION_HELPER int StoredValuesPack(CeedInt Q, CeedInt i, CeedInt start, CeedInt num_comp, c… in StoredValuesPack() argument
311 for (CeedInt j = 0; j < num_comp; j++) stored[(start + j) * Q + i] = values_at_qpnt[j]; in StoredValuesPack()
328 CEED_QFUNCTION_HELPER int StoredValuesUnpack(CeedInt Q, CeedInt i, CeedInt start, CeedInt num_comp,… in StoredValuesUnpack() argument
330 for (CeedInt j = 0; j < num_comp; j++) values_at_qpnt[j] = stored[(start + j) * Q + i]; in StoredValuesUnpack()
528 CEED_QFUNCTION_HELPER void GradUnpackND(CeedInt Q, CeedInt i, CeedInt num_comp, CeedInt dim, const … in GradUnpackND() argument
530 for (CeedInt c = 0; c < num_comp; c++) { in GradUnpackND()
531 grad_local[dim * c + d] = grad[(Q * num_comp) * d + Q * c + i]; in GradUnpackND()
545 CEED_QFUNCTION_HELPER void GradUnpack3D(CeedInt Q, CeedInt i, CeedInt num_comp, const CeedScalar *g… in GradUnpack3D() argument
546 GradUnpackND(Q, i, num_comp, 3, grad, (CeedScalar *)grad_local); in GradUnpack3D()
558 CEED_QFUNCTION_HELPER void GradUnpack2D(CeedInt Q, CeedInt i, CeedInt num_comp, const CeedScalar *g… in GradUnpack2D() argument
[all …]
/honee/include/
H A Dnodal_projection.h8 PetscInt num_comp; member
H A Ddm-utils.h30 PetscErrorCode DMGetFieldNumComps(DM dm, PetscInt field, PetscInt *num_comp);
/honee/src/spanstats/
H A Dspanstats.c121 static PetscErrorCode CreateElemRestrColloc_CompMajor(Ceed ceed, CeedInt num_comp, CeedBasis basis,… in CreateElemRestrColloc_CompMajor() argument
129 const CeedInt strides[] = {num_comp, 1, num_elem_qpts * num_comp}; in CreateElemRestrColloc_CompMajor()
130 …eedElemRestrictionCreateStrided(ceed, loc_num_elem, num_elem_qpts, num_comp, num_comp * loc_num_el… in CreateElemRestrColloc_CompMajor()
/honee/problems/
H A Dadvection.c193 …CeedQFunctionAddOutput(qf_rhs_volume, "diffusive flux RHS", projection->num_comp * dim, CEED_EVAL_… in DivDiffFluxProjectionCreateRHS_Direct_AdvDif()
234 …edQFunctionAddOutput(qf_rhs_boundary, "diffusive flux RHS", projection->num_comp, CEED_EVAL_INTERP… in DivDiffFluxProjectionCreateRHS_Direct_AdvDif()
341 …PetscCallCeed(ceed, CeedQFunctionAddOutput(qf_rhs, "F_diff RHS", projection->num_comp, CEED_EVAL_I… in DivDiffFluxProjectionCreateRHS_Indirect_AdvDif()
H A Dnewtonian.c152 …CeedQFunctionAddOutput(qf_rhs_volume, "diffusive flux RHS", projection->num_comp * dim, CEED_EVAL_… in DivDiffFluxProjectionCreateRHS_Direct_NS()
199 …edQFunctionAddOutput(qf_rhs_boundary, "diffusive flux RHS", projection->num_comp, CEED_EVAL_INTERP… in DivDiffFluxProjectionCreateRHS_Direct_NS()
309 …PetscCallCeed(ceed, CeedQFunctionAddOutput(qf_rhs, "F_diff RHS", projection->num_comp, CEED_EVAL_I… in DivDiffFluxProjectionCreateRHS_Indirect_NS()