Lines Matching refs:Nf

7   PetscInt   depth, Nf, f, pStart, pEnd;  in DMPlexCreateSectionFields()  local
13 PetscCall(DMGetNumFields(dm, &Nf)); in DMPlexCreateSectionFields()
14 PetscCall(PetscCalloc1(Nf, &isFE)); in DMPlexCreateSectionFields()
15 for (f = 0; f < Nf; ++f) { in DMPlexCreateSectionFields()
29 if (Nf > 0) { in DMPlexCreateSectionFields()
30 PetscCall(PetscSectionSetNumFields(*section, Nf)); in DMPlexCreateSectionFields()
32 for (f = 0; f < Nf; ++f) { in DMPlexCreateSectionFields()
94 PetscInt Nf, f, Nds, n, dim, d, dep, p; in DMPlexCreateSectionDof() local
101 PetscCall(DMGetNumFields(dm, &Nf)); in DMPlexCreateSectionDof()
114 PetscCall(PetscMalloc1(Nf, &isFE)); in DMPlexCreateSectionDof()
115 for (f = 0; f < Nf; ++f) { in DMPlexCreateSectionDof()
126 for (f = 0; f < Nf; ++f) { in DMPlexCreateSectionDof()
196 PetscInt Nf; in DMPlexCreateSectionBCDof() local
201 PetscCall(PetscSectionGetNumFields(section, &Nf)); in DMPlexCreateSectionBCDof()
208 if (Nf) { in DMPlexCreateSectionBCDof()
221 if (Nf) { in DMPlexCreateSectionBCDof()
230 if (Nf) { in DMPlexCreateSectionBCDof()
237 if (Nf) PetscCall(PetscSectionAddFieldConstraintDof(section, p, field, numConst)); in DMPlexCreateSectionBCDof()
257 for (f = 0; f < Nf; f++) { in DMPlexCreateSectionBCDof()
274 PetscInt Nf, cdof, maxDof = 0, pStart, pEnd, p, bc, f, d; in DMPlexCreateSectionBCIndicesField() local
277 PetscCall(PetscSectionGetNumFields(section, &Nf)); in DMPlexCreateSectionBCIndicesField()
278 if (!Nf) PetscFunctionReturn(PETSC_SUCCESS); in DMPlexCreateSectionBCIndicesField()
288 … for (f = 0; f < Nf; ++f) PetscCall(PetscSectionSetFieldConstraintIndices(section, p, f, indices)); in DMPlexCreateSectionBCIndicesField()
347 … for (f = 0; f < Nf; f++) PetscCall(PetscSectionSetFieldConstraintIndices(section, a, f, indices)); in DMPlexCreateSectionBCIndicesField()
359 PetscInt Nf, maxDof, pStart, pEnd, p, f, d; in DMPlexCreateSectionBCIndices() local
362 PetscCall(PetscSectionGetNumFields(section, &Nf)); in DMPlexCreateSectionBCIndices()
372 if (Nf) { in DMPlexCreateSectionBCIndices()
375 for (f = 0; f < Nf; ++f) { in DMPlexCreateSectionBCIndices()
455 PetscInt depth, dim, numBC = 0, Nf, Nds, s, bc = 0, f; in DMCreateLocalSection_Plex() local
459 PetscCall(DMGetNumFields(dm, &Nf)); in DMCreateLocalSection_Plex()
463 PetscCall(PetscMalloc1(Nf, &isFE)); in DMCreateLocalSection_Plex()
464 for (f = 0; f < Nf; ++f) { in DMCreateLocalSection_Plex()
484 …PetscCheck(Nf || !numBd, PetscObjectComm((PetscObject)dm), PETSC_ERR_PLIB, "number of fields is ze… in DMCreateLocalSection_Plex()
496 for (f = 0; f < Nf; ++f) in DMCreateLocalSection_Plex()
500 for (f = 0; f < Nf; ++f) { in DMCreateLocalSection_Plex()
587 PetscCall(PetscCalloc3(Nf, &labels, Nf, &numComp, Nf * (dim + 1), &numDof)); in DMCreateLocalSection_Plex()
588 for (f = 0; f < Nf; ++f) { in DMCreateLocalSection_Plex()
607 for (f = 0; f < Nf; ++f) { in DMCreateLocalSection_Plex()
615 for (f = 0; f < Nf; ++f) { in DMCreateLocalSection_Plex()