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/vec/vec/tutorials/ex44.c
src/tao/constrained/tutorials/ex1.c
src/tao/pde_constrained/tutorials/elliptic.c
src/tao/pde_constrained/tutorials/hyperbolic.c
src/tao/unconstrained/tutorials/eptorsion3.c
src/tao/unconstrained/tutorials/eptorsion1.c
src/tao/tutorials/ex3.c
src/tao/pde_constrained/tutorials/parabolic.c
src/vec/vec/tutorials/ex5.c
src/tao/unconstrained/tutorials/eptorsion2.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