Lines Matching refs:numNeighbors

345   PetscInt          *numNeighbors, **neighbors, *locSupport = NULL;  in DMPlexOrient()  local
493 PetscCall(PetscMalloc2(numComponents, &numNeighbors, numComponents, &neighbors)); in DMPlexOrient()
500 numNeighbors[comp] = 0; in DMPlexOrient()
511 for (n = 0; n < numNeighbors[comp]; ++n) in DMPlexOrient()
513 if (n >= numNeighbors[comp]) { in DMPlexOrient()
522 neighbors[comp][numNeighbors[comp]++] = l; in DMPlexOrient()
526 totNeighbors += numNeighbors[comp]; in DMPlexOrient()
534 for (n = 0; n < numNeighbors[comp]; ++n, ++off) { in DMPlexOrient()
563 …PetscCallMPI(MPI_Gatherv(numNeighbors, numComponents, MPIU_INT, N, Nc, displs, MPIU_INT, 0, comm)); in DMPlexOrient()
573 PetscCall(PetscFree2(numNeighbors, neighbors)); in DMPlexOrient()
622 PetscInt proc, nproc, seen, flippedA, flippedB, mismatch, numNeighbors, n; in DMPlexOrient() local
626 PetscCall(MatGetRow(G, proc, &numNeighbors, &neighbors, &ornt)); in DMPlexOrient()
628 for (n = 0; n < numNeighbors; ++n) { in DMPlexOrient()
694 PetscCall(PetscFree2(numNeighbors, neighbors)); in DMPlexOrient()
747 PetscInt *numNeighbors, **neighbors, *locSupp = NULL; in DMPlexOrientCells_Internal() local
866 PetscCall(PetscMalloc2(Ncomp, &numNeighbors, Ncomp, &neighbors)); in DMPlexOrientCells_Internal()
873 numNeighbors[comp] = 0; in DMPlexOrientCells_Internal()
886 for (n = 0; n < numNeighbors[comp]; ++n) in DMPlexOrientCells_Internal()
888 if (n >= numNeighbors[comp]) { in DMPlexOrientCells_Internal()
902 neighbors[comp][numNeighbors[comp]++] = l; in DMPlexOrientCells_Internal()
906 totNeighbors += numNeighbors[comp]; in DMPlexOrientCells_Internal()
912 for (PetscInt n = 0; n < numNeighbors[comp]; ++n, ++off) { in DMPlexOrientCells_Internal()
943 PetscCallMPI(MPI_Gatherv(numNeighbors, iNcomp, MPIU_INT, N, Nc, displs, MPIU_INT, 0, comm)); in DMPlexOrientCells_Internal()
953 PetscCall(PetscFree2(numNeighbors, neighbors)); in DMPlexOrientCells_Internal()
999 PetscInt proc, nproc, seen, flippedA, flippedB, mismatch, numNeighbors; in DMPlexOrientCells_Internal() local
1003 PetscCall(MatGetRow(G, proc, &numNeighbors, &neighbors, &ornt)); in DMPlexOrientCells_Internal()
1005 for (PetscInt n = 0; n < numNeighbors; ++n) { in DMPlexOrientCells_Internal()
1109 PetscCall(PetscFree2(numNeighbors, neighbors)); in DMPlexOrientCells_Internal()