:orphan:
# VecTagger
Object used to manage the tagging of a subset of indices based on the values of a vector.  The motivating application is the selection of cells for refinement or coarsening based on vector containing the values in an error indicator metric. 
## Synopsis
```
typedef struct _p_VecTagger *VecTagger;
```

## Values

- ***`VECTAGGERABSOLUTE` -*** "absolute" values are in a interval (box for complex values) of explicitly defined values
- ***`VECTAGGERRELATIVE` -*** "relative" values are in a interval (box for complex values) of values relative to the set of all values in the vector
- ***`VECTAGGERCDF` -*** "cdf" values are in a relative range of the *cumulative distribution* of values in the vector
- ***`VECTAGGEROR` -*** "or" values are in the union of other tags
- ***`VECTAGGERAND` -*** "and" values are in the intersection of other tags





## Developer Note
Why not use a `DMLabel` or similar object


## See Also
 [](ch_vectors), `Vec`, `VecTaggerType`, `VecTaggerCreate()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/include/petscvec.h.html#VecTagger">include/petscvec.h</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/include/petsc/private/vecimpl.h.html#_p_VecTagger">_p_VecTagger in include/petsc/private/vecimpl.h</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petscvec.h)


[Index of all Vec routines](index.md)  
[Table of Contents for all manual pages](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
