Lines Matching refs:degree
9 PetscCall(PetscOptionsInt("-petscspace_ptrimmed_form_degree", "form degree of trimmed space", "PetscSpacePTrimmedSetFormDegree", pt->formDegree, &pt->formDegree, NULL));
21 tdegree = f == 0 ? sp->degree : sp->degree + 1;
22 PetscCall(PetscViewerASCIIPrintf(v, "Trimmed polynomials %" PetscInt_FMT "%s-forms of degree %" PetscInt_FMT " (P-%" PetscInt_FMT "/\\%" PetscInt_FMT ")\n", PetscAbsInt(f), f < 0 ? "*" : "", sp->degree, tdegree, PetscAbsInt(f)));
62 PetscCheck(pt->formDegree >= -sp->Nv && pt->formDegree <= sp->Nv, PetscObjectComm((PetscObject)sp), PETSC_ERR_ARG_OUTOFRANGE, "Form degree %" PetscInt_FMT " not in valid range [%" PetscInt_FMT ",%" PetscInt_FMT "]", pt->formDegree, sp->Nv, sp->Nv);
100 if (sp->degree == PETSC_DEFAULT) sp->degree = 0;
101 else PetscCheck(sp->degree >= 0, PetscObjectComm((PetscObject)sp), PETSC_ERR_ARG_OUTOFRANGE, "Invalid negative degree %" PetscInt_FMT, sp->degree);
102 sp->maxDegree = (pt->formDegree == 0 || PetscAbsInt(pt->formDegree) == sp->Nv) ? sp->degree : sp->degree + 1;
121 // For PetscSpace, degree refers to the largest complete polynomial degree contained in the space which
122 // is equal to the index of a P trimmed space only for 0-forms: otherwise, the index is degree + 1
123 PetscCall(PetscDTPTrimmedSize(sp->Nv, f == 0 ? sp->degree : sp->degree + 1, pt->formDegree, dim));
138 PetscInt jet, degree, Nf, Ncopies, Njet;
159 degree = f == 0 ? sp->degree : sp->degree + 1;
164 PetscCall(PetscDTPTrimmedSize(dim, degree, f, &Nb));
166 PetscCall(PetscDTPTrimmedEvalJet(dim, npoints, points, degree, f, jet, eval));
237 PetscSpacePTrimmedSetFormDegree - Set the form degree of the trimmed polynomials.
241 - formDegree - the form degree
244 . -petscspace_ptrimmed_form_degree <int> - The trimmed polynomial form degree
259 PetscSpacePTrimmedGetFormDegree - Get the form degree of the trimmed polynomials.
265 . formDegree - the form degree
311 PetscInt Nc, degree, Nf, Ncopies, Nfsub;
319 PetscCall(PetscSpaceGetDegree(sp, °ree, NULL));
326 PetscCall(PetscSpaceSetDegree(sub, degree, PETSC_DETERMINE));
383 In $L_2$, ($\sim k=n$), trimmed polynomial spaces are identical to the standard polynomial spaces of one degree less, $\mathcal{P}_r^- \sim P_{r-1}$.