# VecGetType

Gets the vector type name (as a string) from the Vec.

### Synopsis

    #include "petscvec.h"
    int VecGetType(Vec vec, VecType *type)

Not Collective

### Input Parameter

vec -The vector

### Output Parameter

type -The vector type name

### Keywords

vector, get, type, name

### See Also

VecSetType(), VecCreate()

Level:intermediate
Location: src/vec/interface/vecreg.c
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages