Lines Matching refs:numConst
219 PetscInt numConst; in DMPlexCreateSectionBCDof() local
222 PetscCall(PetscSectionGetFieldDof(section, p, field, &numConst)); in DMPlexCreateSectionBCDof()
224 PetscCall(PetscSectionGetDof(section, p, &numConst)); in DMPlexCreateSectionBCDof()
231 …numConst % Nc == 0, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Point %" PetscInt_FMT " has %" PetscInt… in DMPlexCreateSectionBCDof()
232 numConst = (numConst / Nc) * cNc; in DMPlexCreateSectionBCDof()
234 numConst = PetscMin(numConst, cNc); in DMPlexCreateSectionBCDof()
237 if (Nf) PetscCall(PetscSectionAddFieldConstraintDof(section, p, field, numConst)); in DMPlexCreateSectionBCDof()
238 PetscCall(PetscSectionAddConstraintDof(section, p, numConst)); in DMPlexCreateSectionBCDof()
373 PetscInt numConst = 0, foff = 0; in DMPlexCreateSectionBCIndices() local
383 for (d = 0; d < fcdof; ++d) indices[numConst + d] = find[d] + foff; in DMPlexCreateSectionBCIndices()
384 numConst += fcdof; in DMPlexCreateSectionBCIndices()
387 if (cdof != numConst) PetscCall(PetscSectionSetConstraintDof(section, p, numConst)); in DMPlexCreateSectionBCIndices()