PetscIntCSRView#

Prints a graph represented in compressed sparse row (CSR) format; useful for debugging.

Synopsis#

#include "petscsys.h" 
PetscErrorCode PetscIntCSRView(PetscInt N, const PetscInt ia[], const PetscInt ja[], PetscViewer viewer)

Collective

Input Parameters#

  • N - number of local vertices

  • ia - row pointers of length N + 1

  • ja - adjacency list of length ia[N]

  • viewer - an optional PetscViewer visualization context

Notes#

This may be called from within the debugger, passing NULL as the viewer.

ia[0] must be zero and the row pointers must be nondecreasing.

Only ASCII viewers are supported.

See Also#

PetscViewer, PetscIntView(), PetscPartitionerPartition()

Level#

intermediate

Location#

src/sys/utils/arrayview.c


Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages