Skip to main content
Ctrl+K
PETSc v3.23.2-211-g226f8a8a5081 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
  • VecAssemblyBegin

VecAssemblyBegin#

Begins assembling the vector; that is ensuring all the vector’s entries are stored on the correct MPI process. This routine should be called after completing all calls to VecSetValues().

Synopsis#

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

Collective

Input Parameter#

  • vec - the vector

See Also#

Vectors and Parallel Data, Vec, VecAssemblyEnd(), VecSetValues()

Level#

beginner

Location#

src/vec/vec/interface/vector.c

Examples#

src/ksp/ksp/tutorials/ex36.cxx
src/ksp/ksp/tutorials/ex73.c
src/ksp/ksp/tutorials/ex3.c
src/ksp/ksp/tutorials/ex72.c
src/ksp/ksp/tutorials/ex10.c
src/ksp/ksp/tutorials/ex65.c
src/ksp/ksp/tutorials/ex5f.F90
src/ksp/ksp/tutorials/ex55.c
src/ksp/ksp/tutorials/ex35.cxx
src/ksp/ksp/tutorials/ex9.c

Implementations#

VecAssemblyBegin_MPI() in src/vec/vec/impls/mpi/pdvec.c
VecAssemblyBegin_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
  • See Also
  • Level
  • Location
  • Examples
  • Implementations
Edit on GitLab
Show Source

© Copyright 1991-2025, 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 2025-05-20T11:24:31-0500 (v3.23.2-211-g226f8a8a5081).