DMPrintLocalVec#

Print a Vec associated with a DM, filtering out very small entries

Synopsis#

#include "petscdm.h"          
#include "petscdmlabel.h"     
#include "petscds.h"     
PetscErrorCode DMPrintLocalVec(DM dm, const char name[], PetscReal tol, Vec X)

Collective

Input Parameters#

  • dm - the DM providing the communicator

  • name - a label printed before the vector values

  • tol - tolerance below which entries are filtered to zero using VecFilter()

  • X - the Vec to print

Note#

Runs in parallel by wrapping the local portion of the vector in an MPI vector for viewing.

See Also#

DM Basics, DM, DMPrintCellIndices(), DMPrintCellVector(), DMPrintCellVectorReal(), DMPrintCellMatrix(), VecFilter()

Level#

developer

Location#

src/dm/interface/dm.c

Examples#

src/snes/tutorials/ex12.c


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