Skip to main content
Ctrl+K
PETSc v3.25.0-117-g267b8824abdb 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
  • VecAssemblyEnd

VecAssemblyEnd#

Completes assembling the vector. This routine should be called after VecAssemblyBegin().

Synopsis#

#include "petscvec.h"   
PetscErrorCode VecAssemblyEnd(Vec vec)

Collective

Input Parameter#

  • vec - the vector

Options Database Keys#

  • -vec_view [viewertype][:…] - Display the vector. See VecViewFromOptions()/PetscObjectViewFromOptions() for the possible arguments

  • -vecstash_view [viewertype][:…] - Display the vector stash. See VecStashViewFromOptions()/PetscObjectViewFromOptions() for the possible arguments

See Also#

Vectors and Parallel Data, Vec, VecAssemblyBegin(), VecSetValues(), VecViewFromOptions(), VecStashViewFromOptions(), PetscObjectViewFromOptions()

Level#

beginner

Location#

src/vec/vec/interface/vector.c

Examples#

src/ksp/ksp/tutorials/ex72.c
src/ksp/pc/tutorials/ex1.c
src/snes/tutorials/ex73f90t.F90
src/snes/tutorials/ex56.c
src/ksp/pc/tutorials/ex2.c
src/snes/tutorials/ex70.c
src/snes/tutorials/ex28.c
src/mat/tutorials/ex3.c
src/mat/tutorials/ex2.c
src/snes/tutorials/ex30.c

Implementations#

VecAssemblyEnd_MPI() in src/vec/vec/impls/mpi/pdvec.c
VecAssemblyEnd_Nest() in src/vec/vec/impls/nest/vecnest.c


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

On this page
  • Synopsis
  • Input Parameter
  • Options Database Keys
  • See Also
  • Level
  • Location
  • Examples
  • Implementations
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-04-18T03:47:42-0500 (v3.25.0-117-g267b8824abdb).