Lines Matching refs:neighbors

345   PetscInt          *numNeighbors, **neighbors, *locSupport = NULL;  in DMPlexOrient()  local
493 PetscCall(PetscMalloc2(numComponents, &numNeighbors, numComponents, &neighbors)); in DMPlexOrient()
501 PetscCall(PetscMalloc1(PetscMax(numLeaves, 0), &neighbors[comp])); in DMPlexOrient()
512 …if ((rrank == rpoints[neighbors[comp][n]].rank) && (rcomp == lorntComp[lpoints[neighbors[comp][n]]… in DMPlexOrient()
522 neighbors[comp][numNeighbors[comp]++] = l; in DMPlexOrient()
535 const PetscInt face = lpoints ? lpoints[neighbors[comp][n]] : neighbors[comp][n]; in DMPlexOrient()
540 …scInt_FMT " comp: %d", face, rorntComp[face].rank, lorntComp[face].rank, neighbors[comp][n], comp); in DMPlexOrient()
541 nrankComp[off].rank = rpoints[neighbors[comp][n]].rank; in DMPlexOrient()
542 …nrankComp[off].index = lorntComp[lpoints ? lpoints[neighbors[comp][n]] : neighbors[comp][n]].index; in DMPlexOrient()
544 PetscCall(PetscFree(neighbors[comp])); in DMPlexOrient()
573 PetscCall(PetscFree2(numNeighbors, neighbors)); in DMPlexOrient()
621 const PetscInt *neighbors; in DMPlexOrient() local
626 PetscCall(MatGetRow(G, proc, &numNeighbors, &neighbors, &ornt)); in DMPlexOrient()
629 nproc = neighbors[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()
874 PetscCall(PetscMalloc1(PetscMax(numLeaves, 0), &neighbors[comp])); in DMPlexOrientCells_Internal()
887 …if ((rrank == rpoints[neighbors[comp][n]].rank) && (rcomp == lorntComp[lpoints[neighbors[comp][n]]… in DMPlexOrientCells_Internal()
902 neighbors[comp][numNeighbors[comp]++] = l; in DMPlexOrientCells_Internal()
913 const PetscInt face = lpoints[neighbors[comp][n]]; in DMPlexOrientCells_Internal()
919 …comp: %" PetscInt_FMT, face, rorntComp[face].rank, lorntComp[face].rank, neighbors[comp][n], comp); in DMPlexOrientCells_Internal()
920 nrankComp[off].rank = rpoints[neighbors[comp][n]].rank; in DMPlexOrientCells_Internal()
921 nrankComp[off].index = lorntComp[lpoints[neighbors[comp][n]]].index; in DMPlexOrientCells_Internal()
923 PetscCall(PetscFree(neighbors[comp])); in DMPlexOrientCells_Internal()
953 PetscCall(PetscFree2(numNeighbors, neighbors)); in DMPlexOrientCells_Internal()
998 const PetscInt *neighbors; in DMPlexOrientCells_Internal() local
1003 PetscCall(MatGetRow(G, proc, &numNeighbors, &neighbors, &ornt)); in DMPlexOrientCells_Internal()
1006 nproc = neighbors[n]; in DMPlexOrientCells_Internal()
1109 PetscCall(PetscFree2(numNeighbors, neighbors)); in DMPlexOrientCells_Internal()