Lines Matching refs:n_vertices

4073   n_constraints = pcbddc->local_primal_size - pcbddc->benign_n - pcbddc->n_vertices;  in PCBDDCSetUpLocalWorkVectors()
4074 n_R = pcis->n - pcbddc->n_vertices; in PCBDDCSetUpLocalWorkVectors()
4297 PetscInt lda_rhs, n_vertices, n_constraints, *p0_lidx_I; in PCBDDCSetUpCorrection() local
4315 n_vertices = pcbddc->n_vertices; in PCBDDCSetUpCorrection()
4316 n_constraints = pcbddc->local_primal_size - pcbddc->benign_n - n_vertices; in PCBDDCSetUpCorrection()
4319 n_R = pcis->n - n_vertices; in PCBDDCSetUpCorrection()
4322 PetscCall(PetscMalloc1(n_vertices, &idx_V_B)); in PCBDDCSetUpCorrection()
4323 …PetscCall(ISGlobalToLocalMappingApply(pcis->BtoNmap, IS_GTOLM_DROP, n_vertices, pcbddc->local_prim… in PCBDDCSetUpCorrection()
4324 …(i == n_vertices, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Error in boundary numbering for BDDC vertices!… in PCBDDCSetUpCorrection()
4341 const PetscInt *cidxs = pcbddc->primal_indices_local_idxs + n_vertices; in PCBDDCSetUpCorrection()
4346 PetscCall(PetscMalloc1(n_vertices, &V_to_eff_V)); in PCBDDCSetUpCorrection()
4348 for (PetscInt i = 0; i < n_vertices; i++) { in PCBDDCSetUpCorrection()
4362 PetscCall(PetscMalloc1(n_vertices + n_constraints, &nnz)); in PCBDDCSetUpCorrection()
4363 for (PetscInt i = 0; i < n_vertices; i++) { in PCBDDCSetUpCorrection()
4371 nnz[i + n_vertices] = count_eff[s] + count_eff[s + 1]; in PCBDDCSetUpCorrection()
4388 for (PetscInt i = 0; i < n_vertices; i++) { in PCBDDCSetUpCorrection()
4454 n_eff_vertices = n_vertices; in PCBDDCSetUpCorrection()
4501 PetscCall(ISCreateStride(PETSC_COMM_SELF, n_vertices, 0, 1, &is_V)); in PCBDDCSetUpCorrection()
4502 PetscCall(ISCreateStride(PETSC_COMM_SELF, n_constraints, n_vertices, 1, &is_C)); in PCBDDCSetUpCorrection()
4663 if (n_vertices) { in PCBDDCSetUpCorrection()
4721 …PetscCall(ISCreateGeneral(PETSC_COMM_SELF, n_vertices, pcbddc->local_primal_ref_node, PETSC_USE_PO… in PCBDDCSetUpCorrection()
4727 if (n_vertices) { in PCBDDCSetUpCorrection()
4731 …PetscCall(MatSetValuesSubMat(*coarse_submat, A_VV, n_vertices, idx_V, n_vertices, idx_V, ADD_VALUE… in PCBDDCSetUpCorrection()
4831 … PetscCall(MatCreateSeqAIJWithArrays(PETSC_COMM_SELF, n_vertices, lda_rhs, ii, jj, aa, &tA_RVT)); in PCBDDCSetUpCorrection()
4917 PetscCall(MatCreateSeqAIJFromDenseExpand(B, n_vertices, B_eff_V_J, &T)); in PCBDDCSetUpCorrection()
4937 …PetscCall(MatSetValuesSubMat(*coarse_submat, S_CV, n_constraints, idx_C, n_vertices, idx_V, INSERT… in PCBDDCSetUpCorrection()
4942 PetscCall(MatCreateSeqAIJFromDenseExpand(A_RRmA_RV, n_vertices, R_eff_V_J, &T)); in PCBDDCSetUpCorrection()
4951 PetscCall(MatCreateSeqAIJFromDenseExpand(A_RRmA_RV, n_vertices, R_eff_V_J, &T)); in PCBDDCSetUpCorrection()
4971 PetscCall(PetscMalloc1(n_vertices, &sums)); in PCBDDCSetUpCorrection()
4979 for (j = 0; j < n_vertices; j++) { in PCBDDCSetUpCorrection()
4986 …for (PetscInt k = 0; k < n_vertices; k++) PetscCall(MatSetValue(*coarse_submat, idx_V[idxs[j]], id… in PCBDDCSetUpCorrection()
4997 …PetscCall(MatSetValuesSubMat(*coarse_submat, S_VV, n_vertices, idx_V, n_vertices, idx_V, ADD_VALUE… in PCBDDCSetUpCorrection()
5005 PetscCall(MatCreateSeqAIJ(PETSC_COMM_SELF, n_vertices, n_vertices, 1, NULL, &Vid)); in PCBDDCSetUpCorrection()
5014 …tscCall(MatDenseGetSubMatrix(pcbddc->coarse_phi_B, PETSC_DECIDE, PETSC_DECIDE, 0, n_vertices, &B)); in PCBDDCSetUpCorrection()
5018 …tscCall(MatDenseGetSubMatrix(pcbddc->coarse_phi_D, PETSC_DECIDE, PETSC_DECIDE, 0, n_vertices, &B)); in PCBDDCSetUpCorrection()
5022 …for (i = 0; i < n_vertices; i++) PetscCall(MatSetValues(pcbddc->coarse_phi_D, pcbddc->benign_n, p0… in PCBDDCSetUpCorrection()
5028 …for (i = 0; i < n_vertices; i++) PetscCall(MatSetValues(pcbddc->coarse_phi_B, 1, &idx_V_B[i], 1, &… in PCBDDCSetUpCorrection()
5047 if (n_vertices) { in PCBDDCSetUpCorrection()
5060 …PetscCall(MatSetValuesSubMat(*coarse_submat, S_VC, n_vertices, idx_V, n_constraints, idx_C, INSERT… in PCBDDCSetUpCorrection()
5067 …seGetSubMatrix(pcbddc->coarse_phi_B, PETSC_DECIDE, PETSC_DECIDE, n_vertices, n_vertices + n_constr… in PCBDDCSetUpCorrection()
5071 …seGetSubMatrix(pcbddc->coarse_phi_D, PETSC_DECIDE, PETSC_DECIDE, n_vertices, n_vertices + n_constr… in PCBDDCSetUpCorrection()
5135 if (n_vertices) { in PCBDDCSetUpCorrection()
5145 PetscCall(MatCreateSeqDense(PETSC_COMM_SELF, n_R, n_vertices, NULL, &B_V)); in PCBDDCSetUpCorrection()
5147 if (n_vertices && n_R) { in PCBDDCSetUpCorrection()
5169 if (n_vertices) { in PCBDDCSetUpCorrection()
5171 for (i = 0; i < n_vertices; i++) { in PCBDDCSetUpCorrection()
5183 for (i = n_vertices; i < n_constraints + n_vertices; i++) { in PCBDDCSetUpCorrection()
5184 PetscCall(VecPlaceArray(pcbddc->vec1_R, marray + (i - n_vertices) * n_R)); in PCBDDCSetUpCorrection()
5203 if (i < n_vertices) { in PCBDDCSetUpCorrection()
5247 if (n_vertices) PetscCall(MatDestroy(&A_VR)); in PCBDDCSetUpCorrection()
5714 PetscInt n_vertices, i, j, n_R, n_D, n_B; in PCBDDCSetUpLocalScatters() local
5735 n_vertices = pcbddc->n_vertices; in PCBDDCSetUpLocalScatters()
5741 PetscCall(PetscMalloc1(pcis->n - n_vertices, &idx_R_local)); in PCBDDCSetUpLocalScatters()
5743 … for (i = 0; i < n_vertices; i++) PetscCall(PetscBTSet(bitmask, pcbddc->local_primal_ref_node[i])); in PCBDDCSetUpLocalScatters()
5758 if (bs > 1 && !(n_vertices % bs)) { in PCBDDCSetUpLocalScatters()
5766 for (i = 0; i < n_vertices; i++) vary[pcbddc->local_primal_ref_node[i] / bs]++; in PCBDDCSetUpLocalScatters()
5810 …_FMT ", constraints = %" PetscInt_FMT ", local_primal_size = %" PetscInt_FMT "\n", n_R, n_vertices, in PCBDDCSetUpLocalScatters()
5811 … pcbddc->local_primal_size - n_vertices - pcbddc->benign_n, pcbddc->local_primal_size)); in PCBDDCSetUpLocalScatters()
5821 PetscCall(PetscMalloc1(pcis->n_B - n_vertices, &aux_array1)); in PCBDDCSetUpLocalScatters()
5822 PetscCall(PetscMalloc1(pcis->n_B - n_vertices, &aux_array2)); in PCBDDCSetUpLocalScatters()
6552 PetscInt n_vertices, total_primal_vertices, valid_constraints; in PCBDDCConstraintsSetUp() local
6595 n_vertices = 0; in PCBDDCConstraintsSetUp()
6596 if (ISForVertices) PetscCall(ISGetSize(ISForVertices, &n_vertices)); in PCBDDCConstraintsSetUp()
6603 …%02" PetscInt_FMT " local candidate vertices (%d)\n", PetscGlobalRank, n_vertices, pcbddc->use_ver… in PCBDDCConstraintsSetUp()
6610 if (!pcbddc->use_vertices) n_vertices = 0; in PCBDDCConstraintsSetUp()
6642 ncc = n_vertices + n_ISForFaces + n_ISForEdges; in PCBDDCConstraintsSetUp()
6647 total_counts += n_vertices; in PCBDDCConstraintsSetUp()
6663 …unts * max_constraints + n_vertices, &constraints_data, total_counts + n_vertices, &constraints_id… in PCBDDCConstraintsSetUp()
6741 if (n_vertices) { in PCBDDCConstraintsSetUp()
6743 PetscCall(PetscArraycpy(constraints_idxs, is_indices, n_vertices)); in PCBDDCConstraintsSetUp()
6744 for (i = 0; i < n_vertices; i++) { in PCBDDCConstraintsSetUp()
6922 n_vertices = 0; in PCBDDCConstraintsSetUp()
6923 …_vertices && pcbddc->use_vertices) PetscCall(ISGetLocalSize(sub_schurs->is_vertices, &n_vertices)); in PCBDDCConstraintsSetUp()
6926 for (i = 0; i < sub_schurs->n_subs + n_vertices; i++) { in PCBDDCConstraintsSetUp()
6938 for (i = 0; i < sub_schurs->n_subs + n_vertices; i++) { in PCBDDCConstraintsSetUp()
6949 …s->is_edge, i) || pcbddc->use_change_on_faces) PetscCall(PetscBTSet(change_basis, i + n_vertices)); in PCBDDCConstraintsSetUp()
6990 pcbddc->n_vertices = total_primal_vertices; in PCBDDCConstraintsSetUp()
7005 for (i = n_vertices; i < total_counts_cc; i++) { in PCBDDCConstraintsSetUp()
7026 for (i = n_vertices; i < total_counts_cc; i++) { in PCBDDCConstraintsSetUp()
7088 for (i = n_vertices; i < total_counts_cc; i++) { in PCBDDCConstraintsSetUp()
7181 for (total_counts = n_vertices; total_counts < total_counts_cc; total_counts++) { in PCBDDCConstraintsSetUp()
7394 …PetscCall(ISCreateGeneral(PETSC_COMM_SELF, pcbddc->n_vertices, pcbddc->local_primal_ref_node, PETS… in PCBDDCConstraintsSetUp()
9478 PetscInt n_vertices; in PCBDDCSetUpSubSchurs() local
9480 PetscCall(ISGetLocalSize(sub_schurs->is_vertices, &n_vertices)); in PCBDDCSetUpSubSchurs()
9481 reuse_solvers = (PetscBool)!n_vertices; in PCBDDCSetUpSubSchurs()