Lines Matching refs:num_comp
101 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()
321 for (PetscInt c = 0; c < num_comp; c++) weights[i * num_comp + c] = 1.0; in PetscDTUniformTensorQuadrature()
334 … for (PetscInt c = 0; c < num_comp; c++) weights[(i * num_points + j) * num_comp + c] = 1.0; in PetscDTUniformTensorQuadrature()
351 …for (PetscInt c = 0; c < num_comp; c++) weights[((i * num_points + j) * num_points + k) * num_comp… in PetscDTUniformTensorQuadrature()
365 PetscCall(PetscQuadratureSetData(*q, dim, num_comp, num_total_points, coords, weights)); in PetscDTUniformTensorQuadrature()
384 PetscErrorCode PetscFECreateLagrangeFromOptions(MPI_Comm comm, PetscInt dim, PetscInt num_comp, Pet… in PetscFECreateLagrangeFromOptions() argument
398 PetscCall(PetscSpaceSetNumComponents(fe_space, num_comp)); in PetscFECreateLagrangeFromOptions()
425 if (num_comp > 1) { in PetscFECreateLagrangeFromOptions()
430 PetscCall(PetscSpaceSetNumComponents(fe_space, num_comp)); in PetscFECreateLagrangeFromOptions()
432 PetscCall(PetscSpaceSumSetNumSubspaces(fe_space, num_comp)); in PetscFECreateLagrangeFromOptions()
435 …for (PetscInt i = 0; i < num_comp; i++) PetscCall(PetscSpaceSumSetSubspace(fe_space, i, scalar_fe_… in PetscFECreateLagrangeFromOptions()
444 PetscCall(PetscSpaceGetNumComponents(fe_space, &num_comp)); in PetscFECreateLagrangeFromOptions()
457 PetscCall(PetscDualSpaceSetNumComponents(fe_dual_space, num_comp)); in PetscFECreateLagrangeFromOptions()
594 PetscInt field_offset = 0, num_comp, P, Q, dim; in ComputeFieldTabulationP2C() local
599 num_comp = tabulation->Nc; in ComputeFieldTabulationP2C()
600 P = tabulation->Nb / num_comp; in ComputeFieldTabulationP2C()
617 …ation ? (permutation_indices[field_offset + p_ceed * num_comp] - field_offset) : (p_ceed * num_com… in ComputeFieldTabulationP2C()
618 …terp)[q * P + p_ceed] = tabulation->T[0][((face * Q + q) * P * num_comp + p_petsc) * num_comp + c]; in ComputeFieldTabulationP2C()
620 …+ q) * P + p_ceed] = tabulation->T[1][(((face * Q + q) * P * num_comp + p_petsc) * num_comp + c) *… in ComputeFieldTabulationP2C()
645 …reDataP2C(PetscFE fe, PetscQuadrature quadrature, PetscInt *q_dim, PetscInt *num_comp, PetscInt *Q, in GetQuadratureDataP2C() argument
654 if (num_comp) *num_comp = num_comp_quadrature; in GetQuadratureDataP2C()
691 PetscInt dim, num_comp, Q = -1, q_dim = -1, num_derivatives = 1; in Create1DTabulation_Tensor() local
696 PetscCall(PetscFEGetNumComponents(fe, &num_comp)); in Create1DTabulation_Tensor()
701 PetscInt num_comp, order, q_order; in Create1DTabulation_Tensor() local
707 PetscCall(PetscFEGetNumComponents(fe, &num_comp)); in Create1DTabulation_Tensor()
712 PetscCall(PetscFECreateLagrangeFromOptions(comm, 1, num_comp, !is_tensor, order, in Create1DTabulation_Tensor()
828 …PetscInt num_comp = basis_tabulation->Nc, P = basis_tabulation->Nb / num_comp, Q = basis_tabulatio… in DMPlexCeedBasisCreate() local
830 …PetscCallCeed(ceed, CeedBasisCreateH1(ceed, elem_topo, num_comp, P, Q, interp, grad, q_points, q_w… in DMPlexCeedBasisCreate()
838 PetscInt P_1d, Q_1d, num_comp, dim; in DMPlexCeedBasisCreate() local
844 num_comp = basis_tabulation->Nc; in DMPlexCeedBasisCreate()
845 P_1d = basis_tabulation->Nb / num_comp; in DMPlexCeedBasisCreate()
848 …PetscCallCeed(ceed, CeedBasisCreateTensorH1(ceed, dim, num_comp, P_1d, Q_1d, interp_1d, grad_1d, q… in DMPlexCeedBasisCreate()
999 PetscInt num_derivatives = 1, num_comp, P, Q = -1; in DMPlexCeedBasisCellToFaceCreate() local
1015 num_comp = basis_tabulation->Nc; in DMPlexCeedBasisCellToFaceCreate()
1016 P = basis_tabulation->Nb / num_comp; in DMPlexCeedBasisCellToFaceCreate()
1018 …PetscCallCeed(ceed, CeedBasisCreateH1(ceed, elem_topo, num_comp, P, Q, interp, grad, q_points, q_w… in DMPlexCeedBasisCellToFaceCreate()
1339 PetscErrorCode DMGetCoordinateNumComps(DM dm, PetscInt *num_comp) { in DMGetCoordinateNumComps() argument
1347 PetscCall(PetscSectionGetFieldComponents(section_coord, field, num_comp)); in DMGetCoordinateNumComps()
1358 PetscErrorCode DMGetFieldNumComps(DM dm, PetscInt field, PetscInt *num_comp) { in DMGetFieldNumComps() argument
1363 PetscCall(PetscSectionGetFieldComponents(section, field, num_comp)); in DMGetFieldNumComps()