Lines Matching refs:bc
197 PetscInt bc; in DMPlexCreateSectionBCDof() local
202 for (bc = 0; bc < numBC; ++bc) { in DMPlexCreateSectionBCDof()
209 field = bcField[bc]; in DMPlexCreateSectionBCDof()
212 if (bcComps && bcComps[bc]) PetscCall(ISGetLocalSize(bcComps[bc], &cNc)); in DMPlexCreateSectionBCDof()
213 if (bcComps && bcComps[bc]) PetscCall(ISGetIndices(bcComps[bc], &comp)); in DMPlexCreateSectionBCDof()
214 if (bcPoints[bc]) { in DMPlexCreateSectionBCDof()
215 PetscCall(ISGetLocalSize(bcPoints[bc], &n)); in DMPlexCreateSectionBCDof()
216 PetscCall(ISGetIndices(bcPoints[bc], &idx)); in DMPlexCreateSectionBCDof()
240 PetscCall(ISRestoreIndices(bcPoints[bc], &idx)); in DMPlexCreateSectionBCDof()
242 if (bcComps && bcComps[bc]) PetscCall(ISRestoreIndices(bcComps[bc], &comp)); in DMPlexCreateSectionBCDof()
274 PetscInt Nf, cdof, maxDof = 0, pStart, pEnd, p, bc, f, d; in DMPlexCreateSectionBCIndicesField() local
290 for (bc = 0; bc < numBC; ++bc) { in DMPlexCreateSectionBCIndicesField()
291 const PetscInt field = bcField[bc]; in DMPlexCreateSectionBCIndicesField()
296 if (bcComps && bcComps[bc]) PetscCall(ISGetLocalSize(bcComps[bc], &cNc)); in DMPlexCreateSectionBCIndicesField()
297 if (bcComps && bcComps[bc]) PetscCall(ISGetIndices(bcComps[bc], &comp)); in DMPlexCreateSectionBCIndicesField()
298 if (bcPoints[bc]) { in DMPlexCreateSectionBCIndicesField()
299 PetscCall(ISGetLocalSize(bcPoints[bc], &n)); in DMPlexCreateSectionBCIndicesField()
300 PetscCall(ISGetIndices(bcPoints[bc], &idx)); in DMPlexCreateSectionBCIndicesField()
330 PetscCall(ISRestoreIndices(bcPoints[bc], &idx)); in DMPlexCreateSectionBCIndicesField()
332 if (bcComps && bcComps[bc]) PetscCall(ISRestoreIndices(bcComps[bc], &comp)); in DMPlexCreateSectionBCIndicesField()
455 PetscInt depth, dim, numBC = 0, Nf, Nds, s, bc = 0, f; in DMCreateLocalSection_Plex() local
506 bcFields[bc] = f; in DMCreateLocalSection_Plex()
507 …ISCreateGeneral(PETSC_COMM_SELF, cEnd - cEndInterior, newidx, PETSC_OWN_POINTER, &bcPoints[bc++])); in DMCreateLocalSection_Plex()
542 bcFields[bc] = field; in DMCreateLocalSection_Plex()
543 …mps) PetscCall(ISCreateGeneral(PETSC_COMM_SELF, numComps, comps, PETSC_COPY_VALUES, &bcComps[bc])); in DMCreateLocalSection_Plex()
582 … PetscCall(ISCreateGeneral(PETSC_COMM_SELF, newn, newidx, PETSC_OWN_POINTER, &bcPoints[bc++])); in DMCreateLocalSection_Plex()
626 for (bc = 0; bc < numBC; ++bc) { in DMCreateLocalSection_Plex()
627 PetscCall(ISDestroy(&bcPoints[bc])); in DMCreateLocalSection_Plex()
628 PetscCall(ISDestroy(&bcComps[bc])); in DMCreateLocalSection_Plex()