VecAssemblyEnd — PETSc 3.25.1 documentation

Skip to main content
`Ctrl`+`K`

# 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/dm/impls/stag/tutorials/ex8.c
src/dm/impls/stag/tutorials/ex6.c
src/dm/impls/stag/tutorials/ex3.c
src/ksp/ksp/tutorials/ex54.c
src/ksp/ksp/tutorials/ex55.c
src/dm/impls/stag/tutorials/ex1.c
src/dm/impls/stag/tutorials/ex2.c
src/ksp/ksp/tutorials/ex3.c
src/ksp/ksp/tutorials/ex51.c
src/dm/impls/stag/tutorials/ex4.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