Skip to main content
Ctrl+K
PETSc 3.26.0 documentation - Home
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • VecDestroyVecs

VecDestroyVecs#

Frees a block of vectors obtained with VecDuplicateVecs().

Synopsis#

#include "petscvec.h"   
PetscErrorCode VecDestroyVecs(PetscInt m, Vec *vv[])

Collective

Input Parameters#

  • m - the number of vectors previously obtained, if zero no vectors are destroyed

  • vv - pointer to pointer to array of vector pointers, if NULL no vectors are destroyed

See Also#

Vectors and Parallel Data, Vec, PETSc for Fortran Users, VecDuplicateVecs(), VecDestroyVecsf90()

Level#

intermediate

Location#

src/vec/vec/interface/vector.c

Examples#

src/vec/vec/tutorials/ex1.c
src/vec/vec/tutorials/ex19.c
src/vec/vec/tutorials/ex1f90.F90
src/vec/vec/tutorials/ex20f90.F90
src/vec/vec/tests/ex2k.c
src/vec/vec/tests/ex43.c
src/ksp/ksp/tutorials/ex49.c
src/tao/pde_constrained/tutorials/hyperbolic.c
src/tao/pde_constrained/tutorials/parabolic.c
src/ksp/ksp/tests/ex45.c


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

On this page
  • Synopsis
  • Input Parameters
  • See Also
  • Level
  • Location
  • Examples
Edit on GitLab
Show Source

© Copyright 1991-2026, UChicago Argonne, LLC and the PETSc Development Team.

Created using Sphinx 7.3.7.

Built with the PyData Sphinx Theme 0.15.1.

Last updated on 2026-09-29T03:55:16-0500 (v3.26.0).