#include "petscvec.h" PetscErrorCode PETSCVEC_DLLEXPORT VecCreate(MPI_Comm comm, Vec *vec)If you never call VecSetType() or VecSetFromOptions() it will generate an error when you try to use the vector.
Collective on MPI_Comm
  VecCreate(Vec *x) | -> | VecCreate(PETSC_COMM_SELF,x) |
Level:beginner
Location:src/vec/vec/interface/veccreate.c
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages