Lines Matching refs:cptr
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()
136 PetscInt node_num = graph->queue[graph->cptr[i]]; in PCBDDCGraphASCIIView()
138 …e %" PetscInt_FMT ", fid %" PetscInt_FMT ", neighs:", i, graph->cptr[i + 1] - graph->cptr[i], grap… in PCBDDCGraphASCIIView()
145 …for (j = graph->cptr[i]; j < graph->cptr[i + 1]; j++) PetscCall(PetscViewerASCIISynchronizedPrintf… in PCBDDCGraphASCIIView()
216 PetscInt repdof = graph->queue[graph->cptr[i]]; in PCBDDCGraphGetCandidatesIS()
217 …if (graph->cptr[i + 1] - graph->cptr[i] > graph->custom_minimal_size && graph->nodes[repdof].count… in PCBDDCGraphGetCandidatesIS()
226 nvc += graph->cptr[i + 1] - graph->cptr[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 …all(PetscSortIntWithArray(graph->cptr[i + 1] - graph->cptr[i], &queue_global[graph->cptr[i]], &gra… in PCBDDCGraphGetCandidatesIS()
249 …etscCall(ISCreateGeneral(PETSC_COMM_SELF, graph->cptr[i + 1] - graph->cptr[i], &graph->queue[graph… in PCBDDCGraphGetCandidatesIS()
252 …etscCall(ISCreateGeneral(PETSC_COMM_SELF, graph->cptr[i + 1] - graph->cptr[i], &graph->queue[graph… in PCBDDCGraphGetCandidatesIS()
264 for (j = graph->cptr[i]; j < graph->cptr[i + 1]; j++) { in PCBDDCGraphGetCandidatesIS()
445 for (PetscInt j = graph->cptr[i]; j < graph->cptr[i + 1]; j++) { 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()
533 graph->cptr[ncc] = cum_queue; in PCBDDCGraphComputeConnectedComponents()
546 graph->cptr[ncc] = cum_queue; in PCBDDCGraphComputeConnectedComponents()
556 PetscInt repdof = graph->queue[graph->cptr[i]]; in PCBDDCGraphComputeConnectedComponents()
557 PetscInt ccsize = graph->cptr[i + 1] - graph->cptr[i]; in PCBDDCGraphComputeConnectedComponents()
701 graph->cptr[ncc] = cum_queue; in PCBDDCGraphComputeConnectedComponentsLocal()
711 graph->cptr[ncc] = cum_queue; in PCBDDCGraphComputeConnectedComponentsLocal()
718 graph->cptr[ncc] = cum_queue; in PCBDDCGraphComputeConnectedComponentsLocal()
945 PetscCall(PetscMalloc2(nvtxs + 1, &graph->cptr, nvtxs, &graph->queue)); in PCBDDCGraphSetUp()
948 PetscCall(PetscMalloc2(nused + 1, &graph->cptr, nused, &graph->queue)); in PCBDDCGraphSetUp()
971 graph->cptr[0] = 0; in PCBDDCGraphSetUp()
972 for (i = 0; i < graph->ncc; i++) graph->cptr[i + 1] = graph->cptr[i] + subset_sizes[i]; in PCBDDCGraphSetUp()
978 …PetscCheck(subset_sizes[subset] + graph->cptr[subset] < graph->cptr[subset + 1], PETSC_COMM_SELF, … in PCBDDCGraphSetUp()
979 graph->queue[subset_sizes[subset] + graph->cptr[subset]] = i; in PCBDDCGraphSetUp()
982 …for (i = 0; i < graph->ncc; i++) PetscCheck(subset_sizes[i] + graph->cptr[i] == graph->cptr[i + 1]… in PCBDDCGraphSetUp()
993 PetscCall(PetscMalloc1(graph->cptr[graph->ncc], &queue_global)); in PCBDDCGraphSetUp()
997 …PetscCall(ISLocalToGlobalMappingApply(graph->l2gmap, graph->cptr[graph->ncc], graph->queue, queue_… in PCBDDCGraphSetUp()
1005 for (k = graph->cptr[j]; k < graph->cptr[j + 1]; k++) { in PCBDDCGraphSetUp()
1016 graph->subset_size[j] = graph->cptr[j + 1] - graph->cptr[j]; 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()
1027 PetscCall(PetscArraycpy(graph->subset_idxs[0], graph->queue, graph->cptr[graph->ncc])); in PCBDDCGraphSetUp()
1091 nli = graph->cptr[graph->ncc]; in PCBDDCGraphSetUp()
1110 const PetscInt *lsub_queue_global = queue_global + graph->cptr[i]; in PCBDDCGraphSetUp()
1139 …li == graph->cptr[graph->ncc], PETSC_COMM_SELF, PETSC_ERR_PLIB, "Invalid ilocal size %" PetscInt_F… in PCBDDCGraphSetUp()
1190 PetscCall(PetscFree2(graph->cptr, graph->queue)); in PCBDDCGraphReset()