Lines Matching refs:ncc

132 …ynchronizedPrintf(viewer, "Total number of connected components %" PetscInt_FMT "\n", graph->ncc));  in PCBDDCGraphASCIIView()
133 PetscCall(PetscMalloc1(graph->cptr[graph->ncc], &queue_in_global_numbering)); in PCBDDCGraphASCIIView()
134 …PetscCall(ISLocalToGlobalMappingApply(graph->l2gmap, graph->cptr[graph->ncc], graph->queue, queue_… in PCBDDCGraphASCIIView()
135 for (i = 0; i < graph->ncc; i++) { in PCBDDCGraphASCIIView()
210 PetscCall(PetscCalloc1(graph->ncc, &mark)); in PCBDDCGraphGetCandidatesIS()
215 for (i = 0; i < graph->ncc; i++) { in PCBDDCGraphGetCandidatesIS()
239 PetscCall(PetscMalloc1(graph->cptr[graph->ncc], &queue_global)); in PCBDDCGraphGetCandidatesIS()
240 …PetscCall(ISLocalToGlobalMappingApply(graph->l2gmap, graph->cptr[graph->ncc], graph->queue, queue_… in PCBDDCGraphGetCandidatesIS()
241 …for (i = 0; i < graph->ncc; i++) PetscCall(PetscSortIntWithArray(graph->cptr[i + 1] - graph->cptr[… in PCBDDCGraphGetCandidatesIS()
247 for (i = 0; i < graph->ncc; i++) { in PCBDDCGraphGetCandidatesIS()
260 for (i = 0; i < graph->ncc; i++) { in PCBDDCGraphGetCandidatesIS()
439 PetscInt nr, nmr, nrs, ncc, cum_queue; in PCBDDCGraphComputeConnectedComponents() local
443 for (PetscInt i = 0, k = 0; i < graph->ncc; i++) { in PCBDDCGraphComputeConnectedComponents()
521 …PetscCall(PetscMalloc3(graph->ncc + 1, &ocptr, graph->cptr[graph->ncc], &oqueue, graph->cptr[graph… in PCBDDCGraphComputeConnectedComponents()
522 PetscCall(PetscArraycpy(ocptr, graph->cptr, graph->ncc + 1)); in PCBDDCGraphComputeConnectedComponents()
523 PetscCall(PetscArraycpy(oqueue, graph->queue, graph->cptr[graph->ncc])); in PCBDDCGraphComputeConnectedComponents()
524 PetscCall(PetscArrayzero(touched, graph->cptr[graph->ncc])); in PCBDDCGraphComputeConnectedComponents()
526 ncc = 0; in PCBDDCGraphComputeConnectedComponents()
528 for (PetscInt i = 0; i < graph->ncc; i++) { in PCBDDCGraphComputeConnectedComponents()
533 graph->cptr[ncc] = cum_queue; in PCBDDCGraphComputeConnectedComponents()
534 ncc++; in PCBDDCGraphComputeConnectedComponents()
546 graph->cptr[ncc] = cum_queue; in PCBDDCGraphComputeConnectedComponents()
548 graph->ncc = ncc; in PCBDDCGraphComputeConnectedComponents()
555 for (PetscInt i = 0; i < graph->ncc; i++) { in PCBDDCGraphComputeConnectedComponents()
670 PetscInt ncc, cum_queue; in PCBDDCGraphComputeConnectedComponentsLocal() local
687 ncc = 0; in PCBDDCGraphComputeConnectedComponentsLocal()
701 graph->cptr[ncc] = cum_queue; in PCBDDCGraphComputeConnectedComponentsLocal()
706 ncc++; in PCBDDCGraphComputeConnectedComponentsLocal()
711 graph->cptr[ncc] = cum_queue; in PCBDDCGraphComputeConnectedComponentsLocal()
718 graph->cptr[ncc] = cum_queue; in PCBDDCGraphComputeConnectedComponentsLocal()
722 graph->ncc = ncc; in PCBDDCGraphComputeConnectedComponentsLocal()
951 graph->ncc = 0; in PCBDDCGraphSetUp()
963 graph->ncc++; in PCBDDCGraphSetUp()
964 PetscCall(PetscHMapPCBDDCGraphNodeIterSet(subsetmaps, iter, graph->ncc)); in PCBDDCGraphSetUp()
965 subset = graph->ncc; in PCBDDCGraphSetUp()
972 for (i = 0; i < graph->ncc; i++) graph->cptr[i + 1] = graph->cptr[i] + subset_sizes[i]; in PCBDDCGraphSetUp()
973 for (i = 0; i < graph->ncc; i++) subset_sizes[i] = 0; in PCBDDCGraphSetUp()
982 …for (i = 0; i < graph->ncc; i++) PetscCheck(subset_sizes[i] + graph->cptr[i] == graph->cptr[i + 1]… in PCBDDCGraphSetUp()
988 graph->n_subsets = graph->ncc; in PCBDDCGraphSetUp()
992 PetscCall(PetscMalloc1(graph->ncc, &graph->subset_ref_node)); in PCBDDCGraphSetUp()
993 PetscCall(PetscMalloc1(graph->cptr[graph->ncc], &queue_global)); in PCBDDCGraphSetUp()
994 PetscCall(PetscMalloc2(graph->ncc, &graph->subset_size, graph->ncc, &graph->subset_idxs)); in PCBDDCGraphSetUp()
995 if (graph->multi_element) PetscCall(PetscMalloc1(graph->ncc, &graph->gsubset_size)); in PCBDDCGraphSetUp()
997 …PetscCall(ISLocalToGlobalMappingApply(graph->l2gmap, graph->cptr[graph->ncc], graph->queue, queue_… in PCBDDCGraphSetUp()
1002 for (j = 0; j < graph->ncc; j++) { in PCBDDCGraphSetUp()
1023 if (graph->ncc) { in PCBDDCGraphSetUp()
1024 PetscCall(PetscMalloc1(graph->cptr[graph->ncc], &graph->subset_idxs[0])); in PCBDDCGraphSetUp()
1025 PetscCall(PetscArrayzero(graph->subset_idxs[0], graph->cptr[graph->ncc])); in PCBDDCGraphSetUp()
1026 …for (j = 1; j < graph->ncc; j++) graph->subset_idxs[j] = graph->subset_idxs[j - 1] + graph->subset… in PCBDDCGraphSetUp()
1027 PetscCall(PetscArraycpy(graph->subset_idxs[0], graph->queue, graph->cptr[graph->ncc])); in PCBDDCGraphSetUp()
1091 nli = graph->cptr[graph->ncc]; in PCBDDCGraphSetUp()
1139 …->cptr[graph->ncc], PETSC_COMM_SELF, PETSC_ERR_PLIB, "Invalid ilocal size %" PetscInt_FMT " != %" … in PCBDDCGraphSetUp()