Lines Matching refs:labels
438 PetscInt *labels, *rootlabels, *mrlabels; in PCBDDCGraphComputeConnectedComponents() local
441 PetscCall(PetscMalloc1(graph->nvtxs, &labels)); in PCBDDCGraphComputeConnectedComponents()
442 PetscCall(PetscArrayzero(labels, graph->nvtxs)); in PCBDDCGraphComputeConnectedComponents()
447 labels[graph->queue[j]] = -(k + s + 1); in PCBDDCGraphComputeConnectedComponents()
450 labels[graph->queue[j]] = -(k + 1); in PCBDDCGraphComputeConnectedComponents()
463 PetscCall(PetscSFGatherBegin(graph->interface_subset_sf, MPIU_INT, labels, mrlabels)); in PCBDDCGraphComputeConnectedComponents()
464 PetscCall(PetscSFGatherEnd(graph->interface_subset_sf, MPIU_INT, labels, mrlabels)); in PCBDDCGraphComputeConnectedComponents()
513 …PetscCall(PetscSFBcastBegin(graph->interface_subset_sf, MPIU_INT, rootlabels, labels, MPI_REPLACE)… in PCBDDCGraphComputeConnectedComponents()
514 … PetscCall(PetscSFBcastEnd(graph->interface_subset_sf, MPIU_INT, rootlabels, labels, MPI_REPLACE)); in PCBDDCGraphComputeConnectedComponents()
530 const PetscInt jlabel = labels[oqueue[j]]; in PCBDDCGraphComputeConnectedComponents()
536 if (labels[oqueue[k]] == jlabel) { in PCBDDCGraphComputeConnectedComponents()
538 labels[oqueue[k]] = 0; in PCBDDCGraphComputeConnectedComponents()
545 PetscCall(PetscFree(labels)); in PCBDDCGraphComputeConnectedComponents()