VecGetType#
Gets the vector type name (as a string) from a Vec.
Synopsis#
#include "petscvec.h"
PetscErrorCode VecGetType(Vec vec, VecType *type)
Not Collective
Input Parameter#
vec - The vector
Output Parameter#
type - The
VecTypeof the vector
Note#
type should not be retained for later use as it will be an invalid pointer if the VecType of vec is changed.
See Also#
Vectors and Parallel Data, Vec, VecType, VecCreate(), VecDuplicate(), VecDuplicateVecs(), PetscObjectTypeCompare(), PetscObjectTypeCompareAny()
Level#
intermediate
Location#
Examples#
src/snes/tutorials/ex7.c
src/mat/tutorials/ex19.c
src/ksp/ksp/tutorials/ex73.c
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages