Skip to main content
`Ctrl`+`K`

# VecType

String with the name of a PETSc vector, `Vec`, type

## Synopsis

    typedef const char *VecType;
    #define VECSEQ         "seq"
    #define VECMPI         "mpi"
    #define VECSTANDARD    "standard" /* seq on one process and mpi on multiple */
    #define VECSHARED      "shared"
    #define VECSEQVIENNACL "seqviennacl"
    #define VECMPIVIENNACL "mpiviennacl"
    #define VECVIENNACL    "viennacl" /* seqviennacl on one process and mpiviennacl on multiple */
    #define VECSEQCUDA     "seqcuda"
    #define VECMPICUDA     "mpicuda"
    #define VECCUDA        "cuda" /* seqcuda on one process and mpicuda on multiple */
    #define VECSEQHIP      "seqhip"
    #define VECMPIHIP      "mpihip"
    #define VECHIP         "hip" /* seqhip on one process and mpihip on multiple */
    #define VECNEST        "nest"
    #define VECSEQKOKKOS   "seqkokkos"
    #define VECMPIKOKKOS   "mpikokkos"
    #define VECKOKKOS      "kokkos" /* seqkokkos on one process and mpikokkos on multiple */

## See Also

Summary of Vector Types Available In PETSc, Vectors and Parallel Data, `VecSetType()`, `Vec`, `VecCreate()`, `VecDestroy()`

## Level

beginner

## Location

include/petscvec.h

## Examples

src/ksp/ksp/tutorials/ex73.c
src/mat/tutorials/ex19.c
src/snes/tutorials/ex28.c

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