Lines Matching refs:nvtxs
32 for (i = 0; i < graph->nvtxs; i++) { in PCBDDCGraphGetDirichletDofsB()
38 for (i = 0; i < graph->nvtxs; i++) { in PCBDDCGraphGetDirichletDofsB()
58 for (i = 0; i < graph->nvtxs; i++) { in PCBDDCGraphGetDirichletDofs()
64 for (i = 0; i < graph->nvtxs; i++) { in PCBDDCGraphGetDirichletDofs()
86 …etscViewerASCIISynchronizedPrintf(viewer, "Number of vertices %" PetscInt_FMT "\n", graph->nvtxs)); in PCBDDCGraphASCIIView()
92 for (i = 0; i < graph->nvtxs; i++) { in PCBDDCGraphASCIIView()
303 PetscCall(PetscBTCreate(graph->nvtxs, &cornerp)); in PCBDDCGraphComputeConnectedComponents()
441 PetscCall(PetscMalloc1(graph->nvtxs, &labels)); in PCBDDCGraphComputeConnectedComponents()
442 PetscCall(PetscArrayzero(labels, graph->nvtxs)); in PCBDDCGraphComputeConnectedComponents()
678 for (PetscInt i = 0; i < graph->nvtxs; i++) graph->nodes[i].touched = PETSC_FALSE; in PCBDDCGraphComputeConnectedComponentsLocal()
680 for (PetscInt i = 0; i < graph->nvtxs; i++) { in PCBDDCGraphComputeConnectedComponentsLocal()
734 PetscInt i, j, k, nodes_touched, is_size, nvtxs = graph->nvtxs; in PCBDDCGraphSetUp() local
758 for (i = 0; i < nvtxs; i++) graph->nodes[i].touched = PETSC_FALSE; in PCBDDCGraphSetUp()
772 for (i = 0; i < nvtxs; i++) { in PCBDDCGraphSetUp()
799 …PetscCheck(!nvtxs || graph->local_subs, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Missing local subdomain … in PCBDDCGraphSetUp()
802 PetscCall(ISCreateGeneral(PETSC_COMM_SELF, nvtxs, idxs, PETSC_USE_POINTER, &is)); in PCBDDCGraphSetUp()
811 PetscCall(PetscSFSetGraphLayout(sf, layout, nvtxs, NULL, PETSC_OWN_POINTER, idxs)); in PCBDDCGraphSetUp()
822 for (i = 0; i < nvtxs; i++) { in PCBDDCGraphSetUp()
851 …for (i = 0; i < nvtxs; i++) graph->nodes[i].which_dof = k; /* by default a dof belongs to the comp… in PCBDDCGraphSetUp()
864 …if (is_indices[jj] > -1 && is_indices[jj] < nvtxs) { /* out of bounds indices (if any) are skipped… in PCBDDCGraphSetUp()
878 …if (is_indices[i] > -1 && is_indices[i] < nvtxs) { /* out of bounds indices (if any) are skipped */ in PCBDDCGraphSetUp()
890 …if (is_indices[i] > -1 && is_indices[i] < nvtxs) { /* out of bounds indices (if any) are skipped */ in PCBDDCGraphSetUp()
906 …if (is_indices[i] > -1 && is_indices[i] < nvtxs && graph->nodes[is_indices[i]].special_dof != PCBD… in PCBDDCGraphSetUp()
916 for (i = 0; i < nvtxs; i++) { in PCBDDCGraphSetUp()
935 for (i = 0; i < nvtxs; i++) graph->nodes[i].shared = PETSC_TRUE; in PCBDDCGraphSetUp()
940 for (i = 0; i < nvtxs; i++) in PCBDDCGraphSetUp()
945 PetscCall(PetscMalloc2(nvtxs + 1, &graph->cptr, nvtxs, &graph->queue)); in PCBDDCGraphSetUp()
947 PetscInt nused = nvtxs - nodes_touched; in PCBDDCGraphSetUp()
953 PetscCall(PetscCalloc1(nvtxs, &subset_sizes)); in PCBDDCGraphSetUp()
954 for (i = 0; i < nvtxs; i++) { in PCBDDCGraphSetUp()
975 for (i = 0; i < nvtxs; i++) { in PCBDDCGraphSetUp()
1185 for (PetscInt i = 0; i < graph->nvtxs; i++) { in PCBDDCGraphReset()
1204 graph->nvtxs = 0; in PCBDDCGraphReset()
1230 graph->nvtxs = n; in PCBDDCGraphInit()
1233 PetscCall(PetscCalloc1(graph->nvtxs, &graph->nodes)); in PCBDDCGraphInit()
1235 for (n = 0; n < graph->nvtxs; n++) graph->nodes[n].which_dof = -1; in PCBDDCGraphInit()