PCBDDCSetLocalAdjacencyGraph#
Set adjacency structure (CSR graph) of the local degrees of freedom.
Synopsis#
#include "petscpc.h"
PetscErrorCode PCBDDCSetLocalAdjacencyGraph(PC pc, PetscInt nvtxs, const PetscInt xadj[], const PetscInt adjncy[], PetscCopyMode copymode)
Not collective
Input Parameters#
pc - the preconditioning context.
nvtxs - number of local vertices of the graph (i.e., the number of local dofs).
xadj - CSR format row pointers for the connectivity of the dofs
adjncy - CSR format column pointers for the connectivity of the dofs
copymode - supported modes are
PETSC_COPY_VALUES
,PETSC_USE_POINTER
orPETSC_OWN_POINTER
.
Note#
A dof is considered connected with all local dofs if xadj[dof+1]-xadj[dof] == 1 and adjncy[xadj[dof]] is negative.
See Also#
Level#
intermediate
Location#
Examples#
Implementations#
PCBDDCSetLocalAdjacencyGraph_BDDC() in src/ksp/pc/impls/bddc/bddc.c
Index of all PC routines
Table of Contents for all manual pages
Index of all manual pages