petsc-3.14.6 2021-03-30
VecChop
Set all values in the vector with an absolute value less than the tolerance to zero
Synopsis
#include "petscvec.h"
PetscErrorCode VecChop(Vec v, PetscReal tol)
Input Parameters
| v | - The vector
|
| tol | - The zero tolerance
|
Output Parameters
See Also
VecCreate(), VecSet()
Level
intermediate
Location
src/vec/vec/utils/vecio.c
Examples
src/snes/tutorials/ex12.c.html
src/snes/tutorials/ex77.c.html
src/ts/tutorials/ex48.c.html
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages