VecDestroy#

Destroys a vector.

Synopsis#

#include "petscvec.h"   
PetscErrorCode VecDestroy(Vec *v)

Collective

Input Parameters#

  • v - the vector

See Also#

VecDuplicate(), VecDestroyVecs()

Level#

beginner

Location#

src/vec/vec/interface/vector.c

Examples#

src/vec/vec/utils/tagger/tutorials/ex1.c.html
src/vec/vec/tutorials/ex10.c.html
src/vec/vec/tutorials/ex11.c.html
src/vec/vec/tutorials/ex11f90.F90.html
src/vec/vec/tutorials/ex11f.F90.html
src/vec/vec/tutorials/ex12.c.html
src/vec/vec/tutorials/ex12f.F90.html
src/vec/vec/tutorials/ex13.c.html
src/vec/vec/tutorials/ex14f.F90.html
src/vec/vec/tutorials/ex15.c.html
src/vec/vec/tutorials/ex16.c.html

Implementations#

VecDestroy_MPIFFTW in src/mat/impls/fft/fftw/fftw.c
VecDestroy_MPIKokkos in src/vec/vec/impls/mpi/kokkos/mpikok.kokkos.cxx
VecDestroy_MPICUDA in src/vec/vec/impls/mpi/mpicuda/mpicuda.cu
VecDestroy_MPIHIP in src/vec/vec/impls/mpi/mpihip/mpihip.hip.c
VecDestroy_MPIViennaCL in src/vec/vec/impls/mpi/mpiviennacl/mpiviennacl.cxx
VecDestroy_MPI in src/vec/vec/impls/mpi/pdvec.c
VecDestroy_Nest in src/vec/vec/impls/nest/vecnest.c
VecDestroy_Seq in src/vec/vec/impls/seq/bvec2.c
VecDestroy_SeqKokkos in src/vec/vec/impls/seq/kokkos/veckok.kokkos.cxx
VecDestroy_SeqCUDA in src/vec/vec/impls/seq/seqcuda/veccuda2.cu
VecDestroy_SeqHIP in src/vec/vec/impls/seq/seqhip/vechip2.hip.c
VecDestroy_SeqViennaCL in src/vec/vec/impls/seq/seqviennacl/vecviennacl.cxx


Edit on GitLab

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