Skip to main content
`Ctrl`+`K`

# VecTaggerSetType

set the Vec tagger implementation

## Synopsis

    #include "petscvec.h"
    PetscErrorCode VecTaggerSetType(VecTagger tagger, VecTaggerType type)

Collective

## Input Parameters

- tagger - the `VecTagger` context

- type - a known method

## Options Database Key

- -vec_tagger_type <type> - Sets the method; use -help for a list of available methods (for instance, absolute, relative, cdf, or, and)

## Notes

See “include/petscvec.h” for available methods (for instance)

- `VECTAGGERABSOLUTE` - tag based on a box of values

- `VECTAGGERRELATIVE` - tag based on a box relative to the range of values present in the vector

- `VECTAGGERCDF` - tag based on a box in the cumulative distribution of values present in the vector

- `VECTAGGEROR` - tag based on the union of a set of `VecTagger` contexts

- `VECTAGGERAND` - tag based on the intersection of a set of other `VecTagger` contexts

## See Also

`VecTaggerType`, `VecTaggerCreate()`, `VecTagger`

## Level

advanced

## Location

src/vec/vec/utils/tagger/interface/tagger.c

## Examples

src/ts/tutorials/ex30.c
src/vec/vec/utils/tagger/tutorials/ex1.c
src/ts/tutorials/ex11.c

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